/**
 * Rainbow Craft 主題樣式 —— 完整設計系統
 *
 * 套用並優化 cankao/rainbow-demo(1)/index.html 的設計語言。
 * 設計令牌、板塊樣式、響應式（PC / 平板 / 手機）。
 *
 * @package RainbowCraft
 */

/* ============================================================
   設計令牌 Design Tokens
   ============================================================ */
:root {
	/* 品牌色 */
	--gold: #C8A96E;
	--gold-light: #E0D0A8;
	--gold-dark: #B8965A;
	--wood: #8B6914;

	/* 中性色 */
	--dark: #1A1A1A;
	--gray-900: #2D2D2D;
	--gray-700: #555;
	--gray-500: #888;
	--gray-300: #D8D8D8;
	--gray-200: #F0F0F0;
	--gray-100: #F8F8F8;
	--white: #FFFFFF;

	/* 功能色 */
	--whatsapp: #25D366;
	--whatsapp-dark: #1FB855;
	--error: #D33;
	--success: #2A9D5F;

	/* 圓角 / 陰影 */
	--radius: 2px;
	--radius-lg: 6px;
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
	--shadow-md: 0 8px 30px rgba(0, 0, 0, .08);
	--shadow-lg: 0 20px 60px rgba(0, 0, 0, .12);

	/* 排版 */
	--font-sans: "Noto Sans TC", "PingFang HK", "Microsoft YaHei", sans-serif;
	--font-base: 15px;

	/* 容器 */
	--container: 1280px;
	--gutter: 40px;

	/* 過場 */
	--ease: cubic-bezier(.16, 1, .3, 1);
	--transition: all .3s var(--ease);

	/* 導覽列高度（捲動錨點偏移用） */
	--nav-h: 72px;
}

/* ============================================================
   基礎重置 Reset
   ============================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/* 錨點捲動時預留固定導覽列高度，避免被遮擋 */
	scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
	font-family: var(--font-sans);
	color: var(--gray-900);
	background: var(--white);
	line-height: 1.7;
	font-size: var(--font-base);
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--gold);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--wood);
}

ul,
ol {
	list-style: none;
}

button {
	font-family: inherit;
}

/* 文字選取 */
::selection {
	background: var(--gold);
	color: var(--white);
}

/* 跳至主內容連結（無障礙） */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--dark);
	color: var(--white);
	padding: 12px 24px;
	z-index: 100000;
}
.skip-link:focus {
	left: 12px;
	top: 12px;
	color: var(--white);
}

/* 容器 */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
	width: 100%;
}

/* ============================================================
   區段共用 Section Common
   ============================================================ */
section {
	padding: 100px 0;
}

.section-tag {
	font-size: 11px;
	letter-spacing: .2em;
	color: var(--gold);
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 12px;
}

.section-title {
	font-size: clamp(28px, 3.5vw, 42px);
	font-weight: 300;
	color: var(--dark);
	line-height: 1.35;
	margin-bottom: 16px;
}

.section-title strong {
	font-weight: 700;
}

.section-desc {
	color: var(--gray-500);
	font-size: 15px;
	max-width: 560px;
	line-height: 1.8;
}

.section-header {
	text-align: center;
	margin-bottom: 64px;
}

.section-header .section-desc {
	margin: 0 auto;
}

/* ============================================================
   導覽列 Navigation
   ============================================================ */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, .95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid rgba(0, 0, 0, .06);
	transition: var(--transition);
}

.nav.scrolled {
	box-shadow: var(--shadow-sm);
}

.nav-inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--nav-h);
}

.nav-logo {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--dark);
	display: flex;
	align-items: center;
	gap: 8px;
}

.nav-logo:hover {
	color: var(--dark);
}

.nav-logo .logo-main {
	color: var(--dark);
}

.nav-logo .logo-sep {
	color: var(--gold);
	font-weight: 300;
}

.nav-logo .logo-sub {
	color: var(--gold);
	font-weight: 400;
}

.nav-logo img,
.custom-logo {
	max-height: 44px;
	width: auto;
}

.nav-links {
	display: flex;
	gap: 36px;
	list-style: none;
	align-items: center;
	margin: 0;
}

.nav-links a {
	text-decoration: none;
	color: var(--gray-700);
	font-size: 14px;
	letter-spacing: .04em;
	transition: color .2s;
	position: relative;
	padding: 4px 0;
}

.nav-links a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--gold);
	transition: width .3s;
}

.nav-links a:hover,
.nav-links a:focus {
	color: var(--dark);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
	width: 100%;
}

/* 用 .nav-links .nav-cta（特異性 0,2,1）而非單獨 .nav-cta（0,1,0），
   否則會被上面的 .nav-links a（0,1,1）的 padding:4px 0 覆蓋，
   導致按鈕左右完全沒有留白。 */
.nav-links .nav-cta {
	/* inline-flex 才能讓 <a> 的垂直 padding 形成乾淨的按鈕框，
	   並使文字垂直置中（inline 元素的垂直 padding 會變形）。 */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--gold);
	color: var(--white) !important;
	/* letter-spacing 會在每個字元後加間距（含末字），視覺上文字偏左，
	   故左 padding 補償字間距，讓左右留白視覺對稱。 */
	padding: 10px 30px 10px 28px;
	border-radius: var(--radius);
	font-weight: 600;
	letter-spacing: .06em;
	white-space: nowrap;
	transition: var(--transition);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus {
	background: var(--wood);
	color: var(--white) !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(200, 169, 110, .35);
}

.nav-links .nav-cta:focus-visible {
	outline: 2px solid var(--gold-dark);
	outline-offset: 2px;
}

.nav-links .nav-cta::after {
	display: none !important;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--dark);
	margin: 5px 0;
	transition: .3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   按鈕 Buttons
   ============================================================ */
.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--gold);
	color: var(--white);
	border: none;
	padding: 16px 36px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .08em;
	border-radius: var(--radius);
	cursor: pointer;
	text-decoration: none;
	transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
	background: var(--wood);
	color: var(--white);
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(200, 169, 110, .3);
}

.btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	color: var(--white);
	border: 1px solid rgba(255, 255, 255, .25);
	padding: 16px 36px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .06em;
	border-radius: var(--radius);
	cursor: pointer;
	text-decoration: none;
	transition: var(--transition);
}

.btn-outline:hover,
.btn-outline:focus {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .4);
	color: var(--white);
}

.btn-whatsapp {
	background: var(--whatsapp);
	color: var(--white);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
	background: var(--whatsapp-dark);
	color: var(--white);
	box-shadow: 0 10px 30px rgba(37, 211, 102, .3);
}

/* ============================================================
   Hero 首屏
   ============================================================ */
.hero {
	min-height: 100vh;
	min-height: 100svh;
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 30%, #3a3028 70%, #2d2418 100%);
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
	padding-top: var(--nav-h);
}

.hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 800px;
	height: 800px;
	background: radial-gradient(circle, rgba(200, 169, 110, .12) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
	z-index: 1;
}

.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	/* 深色漸變遮罩：左側深（讓白/金文字清晰）、向右漸淡保留圖片氛圍。
	   同時整體壓暗，確保任何背景圖下文字都可讀。 */
	background: linear-gradient(90deg, rgba(10, 10, 10, .88) 0%, rgba(20, 18, 14, .72) 45%, rgba(30, 25, 18, .45) 100%);
	pointer-events: none;
	z-index: 0;
}

/* 保留原右下角金色微光的裝飾，改用 box-shadow 內陰影疊加。 */
.hero {
	box-shadow: inset -300px -200px 500px rgba(200, 169, 110, .04);
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
	width: 100%;
}

.hero-tag {
	display: inline-block;
	color: var(--gold);
	font-size: 12px;
	letter-spacing: .2em;
	text-transform: uppercase;
	border: 1px solid rgba(200, 169, 110, .3);
	padding: 8px 20px;
	border-radius: var(--radius);
	margin-bottom: 32px;
	background: rgba(200, 169, 110, .04);
}

.hero h1 {
	font-size: clamp(36px, 5vw, 68px);
	font-weight: 300;
	color: var(--white);
	line-height: 1.2;
	letter-spacing: .04em;
	max-width: 700px;
}

.hero h1 strong {
	font-weight: 700;
	color: var(--gold);
}

.hero-desc {
	color: rgba(255, 255, 255, .6);
	font-size: 17px;
	max-width: 480px;
	margin-top: 24px;
	line-height: 1.8;
}

.hero-btns {
	margin-top: 40px;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.hero-scroll {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, .4);
	font-size: 11px;
	letter-spacing: .2em;
	animation: bounce 2s infinite;
	cursor: pointer;
	z-index: 1;
}

@keyframes bounce {
	0%, 100% {
		transform: translateX(-50%) translateY(0);
	}
	50% {
		transform: translateX(-50%) translateY(8px);
	}
}

/* ============================================================
   Stats 信任數字條
   ============================================================ */
.stats {
	background: var(--gray-100);
	padding: 0;
	border-bottom: 1px solid var(--gray-200);
}

.stats-inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	max-width: var(--container);
	margin: 0 auto;
}

.stat-item {
	text-align: center;
	padding: 48px 24px;
	border-right: 1px solid var(--gray-200);
}

.stat-item:last-child {
	border-right: none;
}

.stat-num {
	font-size: 40px;
	font-weight: 300;
	color: var(--gold);
	line-height: 1;
}

.stat-label {
	font-size: 13px;
	color: var(--gray-500);
	margin-top: 8px;
	letter-spacing: .04em;
}

/* ============================================================
   Services 服務項目
   ============================================================ */
.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.service-card {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	background: var(--gray-100);
	transition: var(--transition);
	display: block;
}

.service-card:hover,
.service-card:focus {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
	color: inherit;
}

.service-img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	display: block;
	background: var(--gray-200);
}

.service-body {
	padding: 28px;
}

.service-body h3 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--dark);
}

.service-body p {
	font-size: 13px;
	color: var(--gray-500);
	line-height: 1.7;
}

.service-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	color: var(--gold);
}

/* ============================================================
   Portfolio 案例作品
   ============================================================ */
.portfolio {
	background: var(--gray-100);
}

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
}

.portfolio-item {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	cursor: pointer;
	background: var(--gray-200);
}

.portfolio-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s;
}

.portfolio-item:hover img {
	transform: scale(1.05);
}

.portfolio-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .1) 50%, transparent 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	opacity: 0;
	transition: opacity .3s;
}

.portfolio-item:hover .portfolio-overlay,
.portfolio-item:focus-within .portfolio-overlay {
	opacity: 1;
}

.portfolio-overlay h4 {
	color: var(--white);
	font-size: 15px;
	font-weight: 600;
}

.portfolio-overlay span {
	color: rgba(255, 255, 255, .75);
	font-size: 12px;
	margin-top: 4px;
}

/* ============================================================
   Pricing 透明報價
   ============================================================ */
.pricing-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

.pricing-card {
	background: var(--white);
	border: 1px solid var(--gray-200);
	padding: 40px;
	border-radius: var(--radius);
	transition: var(--transition);
	display: flex;
	flex-direction: column;
}

.pricing-card:hover,
.pricing-card:focus-within {
	border-color: var(--gold);
	box-shadow: var(--shadow-md);
}

.pricing-card.featured {
	border-color: var(--gold);
	box-shadow: var(--shadow-md);
	position: relative;
}

.pricing-card.featured::before {
	content: '熱門';
	position: absolute;
	top: -12px;
	left: 40px;
	background: var(--gold);
	color: var(--white);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	padding: 4px 14px;
	border-radius: var(--radius);
}

.pricing-card h3 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 8px;
}

.pricing-card .pricing-sub {
	color: var(--gray-500);
	font-size: 13px;
}

.pricing-card .price {
	font-size: 36px;
	font-weight: 300;
	color: var(--gold);
	margin: 16px 0;
}

.pricing-card .price small {
	font-size: 14px;
	color: var(--gray-500);
	font-weight: 400;
}

.pricing-features {
	list-style: none;
	margin-top: 24px;
	border-top: 1px solid var(--gray-200);
	padding-top: 24px;
}

.pricing-features li {
	padding: 8px 0;
	font-size: 14px;
	color: var(--gray-700);
	display: flex;
	align-items: center;
	gap: 8px;
}

.pricing-features li::before {
	content: '✓';
	color: var(--gold);
	font-weight: 700;
}

.pricing-card .btn-primary {
	margin-top: 24px;
	align-self: flex-start;
}

/* ============================================================
   Reviews 客戶評價
   ============================================================ */
.reviews {
	background: var(--gray-100);
}

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

.review-card {
	background: var(--white);
	padding: 32px;
	border-radius: var(--radius);
	border: 1px solid var(--gray-200);
}

.review-stars {
	color: var(--gold);
	font-size: 14px;
	margin-bottom: 16px;
	letter-spacing: 2px;
}

.review-card p {
	font-size: 14px;
	color: var(--gray-700);
	line-height: 1.8;
	font-style: italic;
}

.review-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--gray-200);
}

.review-author .review-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--gold);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 14px;
	flex-shrink: 0;
}

.review-author-text strong {
	font-size: 13px;
	color: var(--dark);
	display: block;
}

.review-author-text span {
	font-size: 11px;
	color: var(--gray-500);
}

/* ============================================================
   CTA Strip 行動條
   ============================================================ */
.cta-strip {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	text-align: center;
	padding: 80px 0;
	position: relative;
	overflow: hidden;
}

.cta-strip::before {
	content: '';
	position: absolute;
	top: 50%;
	right: 10%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(200, 169, 110, .08) 0%, transparent 70%);
	border-radius: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

.cta-strip .container {
	position: relative;
	z-index: 1;
}

.cta-strip h2 {
	font-size: clamp(28px, 3.5vw, 40px);
	font-weight: 300;
	color: var(--white);
	line-height: 1.4;
}

.cta-strip h2 strong {
	color: var(--gold);
	font-weight: 700;
}

.cta-strip p {
	color: rgba(255, 255, 255, .5);
	margin: 16px 0 32px;
	font-size: 15px;
}

.cta-strip .btn-primary {
	font-size: 15px;
	padding: 18px 42px;
}

.cta-strip .btn-outline {
	color: var(--white);
}

/* ============================================================
   Contact 詢盤表單區
   ============================================================ */
.contact {
	background: var(--white);
}

.contact-wrap {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 64px;
	align-items: start;
}

.contact-info h2 {
	font-size: clamp(28px, 3.5vw, 38px);
	font-weight: 300;
	color: var(--dark);
	line-height: 1.35;
	margin-bottom: 16px;
}

.contact-info h2 strong {
	font-weight: 700;
	color: var(--gold);
}

.contact-info p {
	color: var(--gray-500);
	line-height: 1.8;
	margin-bottom: 28px;
}

.contact-info-list {
	margin-top: 32px;
}

.contact-info-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--gray-200);
}

.contact-info-item:last-child {
	border-bottom: none;
}

.contact-info-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--gray-100);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--gold);
	font-size: 18px;
}

.contact-info-item-text strong {
	display: block;
	font-size: 13px;
	color: var(--dark);
	font-weight: 600;
}

.contact-info-item-text span,
.contact-info-item-text a {
	display: block;
	font-size: 13px;
	color: var(--gray-500);
}

.contact-info-item-text a:hover {
	color: var(--gold);
}

/* 表單卡片 */
.contact-form-wrap {
	background: var(--gray-100);
	border: 1px solid var(--gray-200);
	padding: 40px;
	border-radius: var(--radius);
}

.contact-form-title {
	font-size: 22px;
	font-weight: 600;
	color: var(--dark);
	margin-bottom: 6px;
}

.contact-form-sub {
	font-size: 13px;
	color: var(--gray-500);
	margin-bottom: 24px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.form-field {
	margin-bottom: 16px;
}

.form-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--gray-700);
	margin-bottom: 6px;
}

.form-field label .required {
	color: var(--error);
}

.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--gray-300);
	border-radius: var(--radius);
	font-size: 14px;
	font-family: inherit;
	color: var(--gray-900);
	background: var(--white);
	transition: var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(200, 169, 110, .15);
}

.form-field textarea {
	resize: vertical;
	min-height: 100px;
}

.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid {
	border-color: var(--error);
}

.form-note {
	font-size: 12px;
	color: var(--gray-500);
	margin-top: 12px;
	line-height: 1.6;
}

.form-note a {
	color: var(--gold);
}

/* 表單狀態訊息 */
.form-message {
	padding: 14px 18px;
	border-radius: var(--radius);
	font-size: 13px;
	margin-bottom: 20px;
	line-height: 1.6;
}

.form-message.success {
	background: rgba(42, 157, 95, .08);
	border: 1px solid rgba(42, 157, 95, .3);
	color: var(--success);
}

.form-message.error {
	background: rgba(221, 51, 51, .06);
	border: 1px solid rgba(221, 51, 51, .25);
	color: var(--error);
}

/* 隱私同意 checkbox */
.form-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 8px 0 20px;
	font-size: 12px;
	color: var(--gray-500);
	line-height: 1.6;
}

.form-consent input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: var(--gold);
	cursor: pointer;
}

/* ============================================================
   Footer 頁尾
   ============================================================ */
footer,
#colophon {
	background: var(--dark);
	color: rgba(255, 255, 255, .5);
	padding: 60px 0 30px;
	font-size: 13px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}

.footer-grid h4 {
	color: var(--white);
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 20px;
	letter-spacing: .06em;
}

.footer-grid a {
	color: rgba(255, 255, 255, .4);
	text-decoration: none;
	display: block;
	padding: 4px 0;
	transition: color .2s;
}

.footer-grid a:hover {
	color: var(--gold);
}

.footer-brand .nav-logo {
	margin-bottom: 16px;
}

.footer-brand .nav-logo .logo-main,
.footer-brand .nav-logo .logo-sub {
	color: var(--white);
}

.footer-brand .nav-logo .logo-sub {
	color: var(--gold);
}

.footer-brand p {
	line-height: 1.8;
	margin-bottom: 16px;
}

.footer-widgets {
	margin: 24px 0;
	padding: 24px 0;
	border-top: 1px solid rgba(255, 255, 255, .08);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

/* ============================================================
   WhatsApp 浮動按鈕
   ============================================================ */
.whatsapp-float {
	position: fixed;
	bottom: 28px;
	right: 28px;
	z-index: 999;
	width: 56px;
	height: 56px;
	background: var(--whatsapp);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
	transition: var(--transition);
}

.whatsapp-float:hover,
.whatsapp-float:focus {
	transform: scale(1.08);
	box-shadow: 0 6px 28px rgba(37, 211, 102, .5);
	background: var(--whatsapp);
}

.whatsapp-float svg {
	width: 28px;
	height: 28px;
	fill: white;
}

/* 浮動按鈕脈動提示 */
.whatsapp-float::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--whatsapp);
	animation: pulse-ring 2.5s ease-out infinite;
}

@keyframes pulse-ring {
	0% {
		transform: scale(1);
		opacity: .8;
	}
	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}

/* ============================================================
   動畫 Animations
   ============================================================ */
.fade-in {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
}

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

/* ── 入場方向變體（圖片/卡片可選用左右、縮放，製造節奏） ── */
.fade-in-left {
	opacity: 0;
	transform: translateX(-40px);
	transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.fade-in-right {
	opacity: 0;
	transform: translateX(40px);
	transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.fade-in-scale {
	opacity: 0;
	transform: scale(.94);
	transition: opacity .7s var(--ease), transform .7s var(--ease);
}

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

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

/* ── 錯峰進場：data-delay 1~5 → 80ms × n（最高 400ms，克制） ──
   由 main.js 自動為同一容器內相鄰 .fade-in 序列賦值，模板無需改動。 */
.fade-in[data-delay="1"],
.fade-in-left[data-delay="1"],
.fade-in-right[data-delay="1"],
.fade-in-scale[data-delay="1"] {
	transition-delay: 80ms;
}

.fade-in[data-delay="2"],
.fade-in-left[data-delay="2"],
.fade-in-right[data-delay="2"],
.fade-in-scale[data-delay="2"] {
	transition-delay: 160ms;
}

.fade-in[data-delay="3"],
.fade-in-left[data-delay="3"],
.fade-in-right[data-delay="3"],
.fade-in-scale[data-delay="3"] {
	transition-delay: 240ms;
}

.fade-in[data-delay="4"],
.fade-in-left[data-delay="4"],
.fade-in-right[data-delay="4"],
.fade-in-scale[data-delay="4"] {
	transition-delay: 320ms;
}

.fade-in[data-delay="5"],
.fade-in-left[data-delay="5"],
.fade-in-right[data-delay="5"],
.fade-in-scale[data-delay="5"] {
	transition-delay: 400ms;
}

/* ============================================================
   滾動進度條 Scroll Progress
   ============================================================ */
.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left center;
	z-index: 1000; /* 高於導覽列，置頂可見 */
	pointer-events: none;
	transition: opacity .3s;
}

.scroll-progress.is-hidden {
	opacity: 0;
}

/* ============================================================
   返回頂部按鈕 Back to Top
   ============================================================ */
.back-to-top {
	position: fixed;
	right: 28px;
	bottom: 96px; /* 避開右下角 WhatsApp 浮動按鈕（其位於 bottom:28px right:28px） */
	z-index: 998;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: rgba(26, 26, 26, .82);
	color: var(--gold);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .22);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s, color .3s;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
	background: var(--gold);
	color: var(--white);
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(200, 169, 110, .35);
}

.back-to-top:active {
	transform: translateY(0) scale(.95);
}

.back-to-top svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* ============================================================
   按鈕微交互：點擊回饋 + Ripple
   ============================================================ */
/* 點擊瞬間的輕微回縮，彌補既有 hover 上移的「按下」感 */
.btn-primary:active,
.btn-outline:active,
.btn-whatsapp:active,
.nav-cta:active,
.filter-tab:active {
	transform: scale(.97);
}

/* 卡片：active 時輕微下沉，配合 hover 上移形成按壓手感 */
.service-card:active,
.pricing-card:active,
.portfolio-item:active,
.stat-item:active {
	transform: translateY(-2px);
}

/* Ripple：JS 於點擊位置動態插入 .ripple span */
.has-ripple {
	position: relative;
	overflow: hidden;
}

.ripple {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, .4);
	transform: scale(0);
	animation: ripple .45s ease-out;
	pointer-events: none;
}

@keyframes ripple {
	to {
		transform: scale(2.5);
		opacity: 0;
	}
}

/* ============================================================
   Hero 視差與逐行進場
   ============================================================ */
.hero {
	will-change: background-position;
}

/* 首屏逐行進場：頁面載入後由 JS 加 .hero-loaded 觸發，
   子元素透過 data-delay 錯峰淡入上移（不等 IntersectionObserver）。 */
.hero-content > .fade-in {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.hero-loaded .hero-content > .fade-in {
	opacity: 1;
	transform: translateY(0);
}

/* 視差由 JS 加 .is-parallax 啟用，僅桌面生效（避免行動裝置抖動）。 */
.hero.is-parallax {
	background-attachment: scroll;
}

/* 無障礙：尊重使用者「減少動態」偏好 */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}

	.fade-in,
	.fade-in-left,
	.fade-in-right,
	.fade-in-scale {
		opacity: 1;
		transform: none;
	}

	.hero-content > .fade-in {
		opacity: 1;
		transform: none;
	}

	.whatsapp-float::after {
		display: none;
	}

	/* 進度條與 ripple 在減少動態下無意義，直接隱藏 */
	.scroll-progress,
	.ripple {
		display: none !important;
	}
}

/* ============================================================
   響應式 Responsive —— 平板 (769-1024px)
   ============================================================ */
@media (max-width: 1024px) {
	:root {
		--gutter: 32px;
	}

	section {
		padding: 80px 0;
	}

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

	.portfolio-grid {
		grid-template-columns: repeat(3, 1fr);
	}

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

	.footer-grid {
		grid-template-columns: 1.5fr 1fr 1fr;
	}

	.footer-grid > div:last-child {
		grid-column: span 3;
	}

	.contact-wrap {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

/* ============================================================
   響應式 Responsive —— 手機 (≤768px)
   ============================================================ */
@media (max-width: 768px) {
	:root {
		--gutter: 20px;
		--nav-h: 64px;
	}

	section {
		padding: 60px 0;
	}

	.container {
		padding: 0 20px;
	}

	/* 導覽列：隱藏水平選單，改漢堡 */
	.nav-links {
		display: none;
		position: absolute;
		top: var(--nav-h);
		left: 0;
		right: 0;
		flex-direction: column;
		background: var(--white);
		padding: 20px 24px;
		gap: 8px;
		box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
		align-items: stretch;
	}

	.nav-links.open {
		display: flex;
	}

	.nav-links li {
		width: 100%;
	}

	.nav-links a {
		display: block;
		padding: 12px 0;
		font-size: 15px;
	}

	.nav-links a::after {
		display: none;
	}

	/* 移動端無 hover 激活底線（含帶下拉項的 ::before），保持手風琴布局乾淨 */
	.nav-links .menu-item-has-children > a::before {
		display: none;
	}

	.nav-links .nav-cta {
		text-align: center;
		margin-top: 8px;
	}

	.menu-toggle {
		display: block;
	}

	/* Hero */
	.hero {
		min-height: 88vh;
	}

	.hero-tag {
		margin-bottom: 24px;
	}

	.hero-btns {
		flex-direction: column;
		width: 100%;
	}

	.hero-btns .btn-primary,
	.hero-btns .btn-outline {
		justify-content: center;
		text-align: center;
	}

	.hero-scroll {
		display: none;
	}

	/* Stats */
	.stats-inner {
		grid-template-columns: repeat(2, 1fr);
	}

	.stat-item {
		padding: 32px 16px;
		border-right: 1px solid var(--gray-200);
		border-bottom: 1px solid var(--gray-200);
	}

	.stat-item:nth-child(2n) {
		border-right: none;
	}

	.stat-item:nth-last-child(-n+2) {
		border-bottom: none;
	}

	.stat-num {
		font-size: 30px;
	}

	/* Services */
	.services-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.service-img {
		height: 220px;
	}

	/* Portfolio */
	.portfolio-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Pricing */
	.pricing-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.pricing-card {
		padding: 28px;
	}

	/* Reviews */
	.reviews-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.review-card {
		padding: 24px;
	}

	/* CTA */
	.cta-strip {
		padding: 60px 0;
	}

	/* Contact */
	.contact-form-wrap {
		padding: 24px;
	}

	.form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	/* Footer */
	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.footer-brand {
		grid-column: span 2;
	}

	.footer-grid > div:last-child {
		grid-column: span 2;
	}

	.footer-bottom {
		flex-direction: column;
		text-align: center;
		gap: 8px;
	}

	/* WhatsApp 浮動按鈕 */
	.whatsapp-float {
		bottom: 20px;
		right: 20px;
		width: 52px;
		height: 52px;
	}

	.whatsapp-float svg {
		width: 26px;
		height: 26px;
	}
}

/* ============================================================
   響應式 Responsive —— 小手機 (≤480px)
   ============================================================ */
@media (max-width: 480px) {
	.hero h1 {
		font-size: 32px;
	}

	.hero-desc {
		font-size: 15px;
	}

	.section-title {
		font-size: 26px;
	}

	.section-header {
		margin-bottom: 36px;
	}

	.btn-primary,
	.btn-outline {
		padding: 14px 28px;
		font-size: 13px;
	}

	.pricing-card .price {
		font-size: 30px;
	}

	.contact-form-wrap {
		padding: 20px;
	}
}

/* ============================================================
   WordPress 核心樣式覆蓋
   ============================================================ */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.alignwide,
.alignfull {
	width: 100%;
}

.entry-content p {
	margin-bottom: 1.2em;
}

/* 文章 / 網頁內容樣式（少量，主題以 Landing 為主） */
.entry-content {
	line-height: 1.8;
	color: var(--gray-700);
}

.entry-content h2,
.entry-content h3 {
	color: var(--dark);
	margin: 1.5em 0 .5em;
}

/* ============================================================
   下拉選單 Dropdown Menu（二級）
   ============================================================ */
.nav-links .menu-item-has-children {
	position: relative;
}

/* 下拉指示箭頭（注意：必須重置普通 .nav-links a::after 的下劃線樣式——
   position/width/height/background 否則會「漏」下來，把箭頭拉成一條
   橫貫菜單項的 1px 金色橫線，這正是原本 hover 激活色異常、寬度過寬的根因） */
.nav-links .menu-item-has-children > a::after {
	content: '▾';
	position: static;
	left: auto;
	bottom: auto;
	width: auto;
	height: auto;
	background: none;
	font-size: 10px;
	margin-left: 6px;
	color: inherit;
	opacity: .6;
	transition: transform .3s, opacity .3s;
	display: inline-block;
	vertical-align: middle;
}

/* 帶下拉的一級菜單 hover 激活底線：::after 已被下拉箭頭 ▾ 佔用，
   故用 ::before 另起一條，樣式嚴格對齊普通項 .nav-links a::after
   （1px 金線、bottom:-4px、left:0、width 0→100%），保證兩類菜單項的
   激活線「同長同粗同色同位」，視覺完全一致。 */
.nav-links .menu-item-has-children > a::before {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--gold);
	transition: width .3s;
}

/* 帶下拉的一級菜單 hover/focus 激活態：文字變金（品牌強調色）、箭頭高亮 + 旋轉 */
.nav-links .menu-item-has-children:hover > a,
.nav-links .menu-item-has-children:focus-within > a,
.nav-links .menu-item-has-children.is-hover-open > a {
	color: var(--gold);
}

.nav-links .menu-item-has-children:hover > a::before,
.nav-links .menu-item-has-children:focus-within > a::before,
.nav-links .menu-item-has-children.is-hover-open > a::before {
	width: 100%;
}

.nav-links .menu-item-has-children:hover > a::after,
.nav-links .menu-item-has-children:focus-within > a::after,
.nav-links .menu-item-has-children.is-hover-open > a::after {
	opacity: 1;
	transform: rotate(180deg);
}

/* 子選單面板（top 留出間距，避免與一級菜單貼得太近；
   padding-top 的透明區作為「橋接」，讓滑鼠從父項移到子菜單時不會
   落入縫隙而中斷 :hover，造成下拉閃爍消失） */
.nav-links .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	min-width: 200px;
	background: var(--white);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(10px);
	transition: opacity .25s, transform .25s, visibility .25s;
	z-index: 100;
}

/* 橋接區：覆蓋父項與子菜單之間的 10px 縫隙，維持 hover 連續性 */
.nav-links .sub-menu::before {
	content: '';
	position: absolute;
	top: -10px;
	left: 0;
	right: 0;
	height: 10px;
}

.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .menu-item-has-children:focus-within > .sub-menu,
.nav-links .menu-item-has-children.is-hover-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.nav-links .sub-menu li {
	width: 100%;
}

.nav-links .sub-menu a {
	display: block;
	padding: 10px 20px;
	font-size: 13px;
	color: var(--gray-700);
	white-space: nowrap;
}

.nav-links .sub-menu a::after {
	display: none;
}

.nav-links .sub-menu a:hover,
.nav-links .sub-menu a:focus {
	background: var(--gray-100);
	color: var(--dark);
}

/* ============================================================
   內頁橫幅 Page Header
   ============================================================ */
.page-header {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 60%, #3a3028 100%);
	color: var(--white);
	padding: calc(var(--nav-h) + 80px) 0 80px;
	position: relative;
	overflow: hidden;
}

.page-header::before {
	content: '';
	position: absolute;
	top: 50%;
	right: 8%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(200, 169, 110, .1) 0%, transparent 70%);
	border-radius: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

.page-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	opacity: .4;
}

.page-header .container {
	position: relative;
	z-index: 1;
}

/* 麵包屑 */
.breadcrumb {
	font-size: 12px;
	color: rgba(255, 255, 255, .5);
	margin-bottom: 20px;
	letter-spacing: .04em;
}

.breadcrumb a {
	color: rgba(255, 255, 255, .6);
	text-decoration: none;
	transition: color .2s;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
	color: var(--gold);
}

.breadcrumb-sep {
	margin: 0 8px;
	opacity: .5;
}

.breadcrumb-current {
	color: var(--gold);
}

.page-header .section-tag {
	margin-bottom: 16px;
}

.page-title {
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 300;
	color: var(--white);
	line-height: 1.3;
	margin-bottom: 16px;
}

.page-title strong {
	font-weight: 700;
	color: var(--gold);
}

.page-desc {
	font-size: 16px;
	color: rgba(255, 255, 255, .65);
	line-height: 1.7;
	max-width: 600px;
}

/* ============================================================
   通用內容區塊
   ============================================================ */
.page-content-section {
	padding: 80px 0;
}

.page-featured-image {
	margin-bottom: 40px;
	border-radius: var(--radius);
	overflow: hidden;
}

.page-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* 「查看更多」按鈕容器 */
.section-more {
	text-align: center;
	margin-top: 48px;
}

/* 淺色背景用的外框按鈕變體（原 .btn-outline 為深底設計） */
.btn-more {
	color: var(--dark);
	border-color: var(--gray-200);
	background: transparent;
}

.btn-more:hover,
.btn-more:focus {
	color: var(--gold);
	border-color: var(--gold);
	background: transparent;
}

/* ============================================================
   關於我們頁 About Page（品牌故事）
   ============================================================ */

/* 品牌故事：左文右圖 */
.about-story-section {
	padding: 100px 0;
	background: var(--white);
}

.about-story-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}

.about-story-text .section-tag {
	margin-bottom: 16px;
}

.about-story-text .section-title {
	margin-bottom: 28px;
}

.about-story-text p {
	color: var(--gray-700);
	font-size: 15px;
	line-height: 1.9;
	margin-bottom: 1.2em;
}

.about-quote {
	margin: 32px 0 0;
	padding: 28px 32px;
	border-left: 3px solid var(--gold);
	background: var(--gray-100);
	font-size: 16px;
	font-style: italic;
	color: var(--gray-900);
	line-height: 1.8;
	border-radius: 0 var(--radius) var(--radius) 0;
}

.about-quote cite {
	display: block;
	margin-top: 14px;
	font-size: 13px;
	font-style: normal;
	color: var(--gold);
	letter-spacing: .04em;
}

/* 故事區右側視覺框 */
.about-visual-frame {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.about-visual-frame::before {
	content: '';
	position: absolute;
	top: -20px;
	right: -20px;
	width: 120px;
	height: 120px;
	border: 2px solid var(--gold);
	border-radius: 50%;
	opacity: .2;
	pointer-events: none;
	z-index: 2;
}

.about-visual-frame img {
	width: 100%;
	height: auto;
	display: block;
}

/* 核心優勢：四卡片 */
.about-values-section {
	padding: 100px 0;
	background: var(--gray-100);
}

.about-values-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.value-card {
	background: var(--white);
	padding: 40px 28px;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
	border-top: 3px solid transparent;
}

.value-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-top-color: var(--gold);
}

.value-icon {
	font-size: 36px;
	color: var(--gold);
	margin-bottom: 20px;
	line-height: 1;
}

.value-card h3 {
	font-size: 18px;
	font-weight: 600;
	color: var(--dark);
	margin-bottom: 12px;
}

.value-card p {
	font-size: 14px;
	color: var(--gray-700);
	line-height: 1.7;
}

/* 信任數字：深色背景 */
.about-stats-section {
	padding: 80px 0;
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 60%, #3a3028 100%);
	position: relative;
	overflow: hidden;
}

.about-stats-section::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(200, 169, 110, .08) 0%, transparent 70%);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.about-stats-inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	position: relative;
	z-index: 1;
}

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

.about-stat-num {
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 300;
	color: var(--gold);
	line-height: 1;
	margin-bottom: 12px;
	letter-spacing: -.02em;
}

.about-stat-num span {
	font-size: .5em;
	margin-left: 2px;
}

.about-stat-label {
	font-size: 14px;
	color: rgba(255, 255, 255, .65);
	letter-spacing: .04em;
}

/* 定制流程：5 步驟 */
.about-process-section {
	padding: 100px 0;
	background: var(--white);
}

.about-process-list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	counter-reset: step;
	list-style: none;
}

.process-step {
	position: relative;
	padding: 32px 20px;
	background: var(--gray-100);
	border-radius: var(--radius);
	transition: var(--transition);
}

.process-step:hover {
	background: var(--white);
	box-shadow: var(--shadow-md);
	transform: translateY(-4px);
}

/* 步驟間連線（桌面） */
.process-step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 52px;
	right: -14px;
	width: 28px;
	height: 1px;
	background: var(--gold);
	opacity: .4;
}

.step-num {
	font-size: 32px;
	font-weight: 700;
	color: var(--gold);
	line-height: 1;
	margin-bottom: 20px;
	opacity: .9;
}

.process-step h3 {
	font-size: 17px;
	font-weight: 600;
	color: var(--dark);
	margin-bottom: 10px;
}

.process-step p {
	font-size: 13px;
	color: var(--gray-700);
	line-height: 1.7;
}

/* CTA 區 */
.about-cta-section {
	padding: 100px 0;
	background: linear-gradient(135deg, #2d2418 0%, #1a1a1a 100%);
	color: var(--white);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.about-cta-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	opacity: .4;
}

.about-cta-inner {
	max-width: 640px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.about-cta-section .section-tag {
	margin-bottom: 16px;
}

.about-cta-section .section-title {
	color: var(--white);
	margin-bottom: 20px;
}

.about-cta-desc {
	font-size: 16px;
	color: rgba(255, 255, 255, .65);
	line-height: 1.8;
	margin-bottom: 36px;
}

.about-cta-btns {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ============================================================
   文章內容排版（補充 .entry-content）
   ============================================================ */
.entry-content {
	line-height: 1.8;
	color: var(--gray-700);
	font-size: 15px;
}

.entry-content p {
	margin-bottom: 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--dark);
	margin: 1.8em 0 .6em;
	line-height: 1.4;
}

.entry-content h2 {
	font-size: 24px;
	font-weight: 600;
}

.entry-content h3 {
	font-size: 19px;
	font-weight: 600;
}

.entry-content h4 {
	font-size: 16px;
	font-weight: 600;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em 1.5em;
}

.entry-content li {
	margin-bottom: .5em;
}

.entry-content ul li::marker {
	color: var(--gold);
}

.entry-content a {
	color: var(--wood);
	text-decoration: underline;
	text-decoration-color: var(--gold);
	text-underline-offset: 3px;
	transition: color .2s;
}

.entry-content a:hover,
.entry-content a:focus {
	color: var(--gold);
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
	margin: 1.5em 0;
}

.entry-content blockquote {
	border-left: 3px solid var(--gold);
	padding: 8px 0 8px 24px;
	margin: 1.5em 0;
	font-style: italic;
	color: var(--gray-700);
	background: var(--gray-100);
}

.entry-content blockquote p {
	margin-bottom: 0;
}

.entry-content figure {
	margin: 1.5em 0;
}

.entry-content figcaption {
	text-align: center;
	font-size: 13px;
	color: var(--gray-500);
	margin-top: 8px;
}

/* ============================================================
   分類篩選 Tab
   ============================================================ */
.filter-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 48px;
}

.filter-tab {
	background: var(--white);
	border: 1px solid var(--gray-200);
	color: var(--gray-700);
	padding: 10px 22px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .04em;
	border-radius: var(--radius);
	cursor: pointer;
	transition: var(--transition);
	font-family: inherit;
}

.filter-tab:hover,
.filter-tab:focus {
	border-color: var(--gold);
	color: var(--gold);
}

.filter-tab.active {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--white);
}

/* 隱藏被篩選掉的項目 */
.portfolio-item.is-hidden {
	display: none;
}

/* ============================================================
   Single 詳情頁佈局
   ============================================================ */
.single-service-section,
.single-portfolio-section {
	padding: 80px 0;
}

.single-service-layout,
.single-portfolio-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 48px;
	align-items: start;
}

.single-featured-image {
	margin-bottom: 32px;
	border-radius: var(--radius);
	overflow: hidden;
}

.single-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.single-excerpt {
	font-size: 18px;
	color: var(--gray-700);
	line-height: 1.7;
	margin-bottom: 32px;
	padding-left: 20px;
	border-left: 3px solid var(--gold);
	font-style: italic;
}

/* 詢盤 CTA 卡片 */
.single-inquiry-cta {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2418 100%);
	color: var(--white);
	padding: 40px;
	border-radius: var(--radius);
	margin-top: 48px;
	position: relative;
	overflow: hidden;
}

.single-inquiry-cta::before {
	content: '';
	position: absolute;
	top: 50%;
	right: -50px;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(200, 169, 110, .12) 0%, transparent 70%);
	border-radius: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

.single-inquiry-cta h3 {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 12px;
	position: relative;
}

.single-inquiry-cta p {
	color: rgba(255, 255, 255, .7);
	font-size: 14px;
	margin-bottom: 24px;
	position: relative;
}

.single-inquiry-cta-btns {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	position: relative;
}

/* 側欄 */
.single-service-sidebar,
.single-portfolio-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
	position: sticky;
	top: calc(var(--nav-h) + 24px);
}

.sidebar-block {
	background: var(--white);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	padding: 24px;
}

.sidebar-block h4 {
	font-size: 15px;
	font-weight: 600;
	color: var(--dark);
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--gray-200);
}

.sidebar-term-list,
.sidebar-related-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-term-list li,
.sidebar-related-list li {
	margin-bottom: 4px;
}

.sidebar-term-list a,
.sidebar-related-list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	font-size: 14px;
	color: var(--gray-700);
	text-decoration: none;
	transition: color .2s;
}

.sidebar-term-list a:hover,
.sidebar-related-list a:hover,
.sidebar-term-list a:focus,
.sidebar-related-list a:focus {
	color: var(--gold);
}

.sidebar-term-count {
	background: var(--gray-100);
	color: var(--gray-500);
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
}

/* 專案資訊 */
.sidebar-project-info dl {
	margin: 0;
}

.project-info-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--gray-200);
}

.project-info-row:last-child {
	border-bottom: none;
}

.project-info-row dt {
	font-size: 13px;
	color: var(--gray-500);
}

.project-info-row dd {
	font-size: 14px;
	color: var(--dark);
	font-weight: 500;
	margin: 0;
}

/* 側欄 CTA */
.sidebar-cta {
	background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
	border: none;
	color: var(--white);
	text-align: center;
}

.sidebar-cta h4 {
	color: var(--white);
	border-color: rgba(255, 255, 255, .1);
}

.sidebar-cta p {
	color: rgba(255, 255, 255, .6);
	font-size: 13px;
	margin-bottom: 20px;
}

/* ============================================================
   FAQ 手風琴
   ============================================================ */
.faq-section {
	padding: 80px 0;
	background: var(--gray-100);
}

.faq-list {
	max-width: 800px;
	margin: 0 auto;
}

.faq-item {
	background: var(--white);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	margin-bottom: 12px;
	overflow: hidden;
	transition: var(--transition);
}

.faq-item:hover {
	border-color: var(--gold);
}

.faq-item[open] {
	border-color: var(--gold);
	box-shadow: var(--shadow-sm);
}

.faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	color: var(--dark);
	list-style: none;
	transition: background .2s;
}

.faq-question::-webkit-details-marker {
	display: none;
}

.faq-question:hover {
	background: var(--gray-100);
}

.faq-question-text {
	flex: 1;
	padding-right: 16px;
}

.faq-icon {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: var(--gold);
	font-weight: 300;
	transition: transform .3s;
	flex-shrink: 0;
}

.faq-item[open] .faq-icon {
	transform: rotate(45deg);
}

.faq-answer {
	padding: 0 24px 20px;
}

.faq-answer p {
	color: var(--gray-700);
	font-size: 14px;
	line-height: 1.8;
	margin: 0;
}

.faq-cta {
	text-align: center;
	margin-top: 48px;
}

.faq-cta p {
	font-size: 15px;
	color: var(--gray-700);
	margin-bottom: 20px;
}

/* ============================================================
   頁尾選單（wp_nav_menu 輸出）
   ============================================================ */
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu li {
	margin: 0;
}

.footer-menu a {
	color: rgba(255, 255, 255, .4);
	text-decoration: none;
	display: block;
	padding: 4px 0;
	font-size: 13px;
	transition: color .2s;
}

.footer-menu a:hover,
.footer-menu a:focus {
	color: var(--gold);
}

/* ============================================================
   Archive 空狀態提示
   ============================================================ */
.archive-empty-note {
	text-align: center;
	margin-top: 48px;
	padding: 32px;
	background: var(--gray-100);
	border-radius: var(--radius);
}

.archive-empty-note p {
	color: var(--gray-500);
	margin-bottom: 20px;
	font-size: 14px;
}

.archive-term-desc {
	text-align: center;
	margin-bottom: 40px;
	color: var(--gray-700);
}

/* 案例畫廊頁網格（與首頁全寬不同，用 container 限寬） */
.portfolio-grid-archive {
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* 分頁導覽（注意：僅作用於 .pagination 容器內的 .nav-links，
   避免與主導覽列 ul.nav-links 撞名而覆蓋其間距） */
.pagination {
	margin-top: 48px;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	font-size: 14px;
	color: var(--gray-700);
	text-decoration: none;
	transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers:focus {
	border-color: var(--gold);
	color: var(--gold);
}

.pagination .page-numbers.current {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--white);
}

.pagination .page-numbers.dots {
	border: none;
}

/* ============================================================
   響應式補充 —— 新組件
   ============================================================ */
@media (max-width: 1024px) {
	.single-service-layout,
	.single-portfolio-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.single-service-sidebar,
	.single-portfolio-sidebar {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.sidebar-block {
		flex: 1 1 280px;
	}

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

@media (max-width: 768px) {
	/* 下拉選單：手機端改為手風琴展開 */
	.nav-links .sub-menu {
		position: static;
		transform: none;
		opacity: 1;
		visibility: visible;
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease;
		box-shadow: none;
		border-top: none;
		border-left: 2px solid var(--gold);
		margin: 0 0 8px 12px;
		padding: 0;
		background: var(--gray-100);
	}

	.nav-links .menu-item-has-children.submenu-open > .sub-menu {
		max-height: 500px;
	}

	.nav-links .menu-item-has-children > a::after {
		content: '▸';
		transition: transform .3s;
	}

	.nav-links .menu-item-has-children.submenu-open > a::after {
		transform: rotate(90deg);
	}

	.nav-links .sub-menu a {
		padding: 10px 16px;
		font-size: 14px;
	}

	/* 內頁橫幅 */
	.page-header {
		padding: calc(var(--nav-h) + 60px) 0 60px;
	}

	/* FAQ */
	.faq-section {
		padding: 60px 0;
	}

	.faq-question {
		padding: 16px 20px;
		font-size: 14px;
	}

	.faq-answer {
		padding: 0 20px 16px;
	}

	/* Single 佈局 */
	.single-service-section,
	.single-portfolio-section {
		padding: 60px 0;
	}

	.single-service-sidebar,
	.single-portfolio-sidebar {
		flex-direction: column;
	}

	.sidebar-block {
		flex: 1 1 100%;
	}

	.single-inquiry-cta {
		padding: 28px 20px;
	}

	.single-inquiry-cta-btns {
		flex-direction: column;
	}

	.single-inquiry-cta-btns .btn-primary {
		width: 100%;
		justify-content: center;
	}

	/* 篩選 tab */
	.filter-tabs {
		gap: 6px;
	}

	.filter-tab {
		padding: 8px 16px;
		font-size: 12px;
	}

	/* 分頁 */
	.pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		font-size: 13px;
	}

	/* 關於我們頁 */
	.about-story-section,
	.about-values-section,
	.about-process-section,
	.about-cta-section {
		padding: 60px 0;
	}

	.about-story-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.about-story-visual {
		order: -1;
		max-width: 420px;
	}

	.about-visual-frame::before {
		width: 80px;
		height: 80px;
		top: -12px;
		right: -12px;
	}

	.about-values-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.value-card {
		padding: 28px 20px;
	}

	.about-stats-section {
		padding: 56px 0;
	}

	.about-stats-inner {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px 16px;
	}

	/* 定制流程：手機改為縱向，隱藏橫向連線 */
	.about-process-list {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.process-step {
		display: flex;
		gap: 20px;
		align-items: flex-start;
		padding: 24px 20px;
	}

	.process-step:not(:last-child)::after {
		display: none;
	}

	.process-step:not(:last-child)::before {
		content: '';
		position: absolute;
		left: 36px;
		bottom: -16px;
		width: 1px;
		height: 16px;
		background: var(--gold);
		opacity: .4;
	}

	.step-num {
		margin-bottom: 0;
		font-size: 26px;
		flex-shrink: 0;
	}

	.process-step h3 {
		font-size: 16px;
	}

	.about-cta-btns {
		flex-direction: column;
	}

	.about-cta-btns .btn-primary,
	.about-cta-btns .btn-outline {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.page-title {
		font-size: 26px;
	}

	.page-desc {
		font-size: 14px;
	}

	.portfolio-grid-archive {
		grid-template-columns: 1fr;
	}

	/* 關於我們頁：極窄屏核心優勢改單欄 */
	.about-values-grid {
		grid-template-columns: 1fr;
	}

	.about-stats-inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.about-quote {
		padding: 20px 22px;
		font-size: 14px;
	}
}
