/*
Theme Name: 中庸資訊 ITPRO
Theme URI: https://itpro.com.tw/
Author: 中庸資訊有限公司
Description: 中庸資訊有限公司官方網站佈景主題。深海軍藍＋大量留白，輕量、響應式（桌機 ≥1024px／平板 768–1023px／手機 <768px）。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itpro
*/

/* ==========================================================================
   1. 設計變數（依規格書配色）
   ========================================================================== */
:root {
	--navy: #1F3A5F;      /* 主色：頁首、頁尾、標題 */
	--navy-dark: #172D4A;
	--blue: #2F5DA8;      /* 輔助色：按鈕、連結、圖示 */
	--blue-dark: #254B8A;
	--blue-tint: #EAF0F8;
	--gold: #D9A82B;      /* 點綴色：標題短線、按鈕滑過（全頁 ≤3 處） */
	--bg-alt: #F4F6F8;    /* 淡灰白區塊 */
	--white: #FFFFFF;
	--text: #333333;
	--muted: #6B7280;
	--line: #DDE2E8;
	--error: #B42318;
	--success: #1E6B45;

	--font: "Inter", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
	--radius: 8px;
	--container: 1200px;
	--gutter: 24px;
	--header-h: 76px;
	--section-y: 80px;
}

/* ==========================================================================
   2. 基礎
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 1em; }

.icon { width: 24px; height: 24px; flex: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 1000;
	background: var(--white); color: var(--navy);
	padding: 10px 16px; border-radius: var(--radius);
	font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.center { text-align: center; }

/* ==========================================================================
   3. 按鈕
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 28px;
	border: 2px solid var(--blue);
	border-radius: var(--radius);
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 20px; height: 20px; }

.btn-primary { background: var(--blue); color: var(--white); }
/* 點綴色 2：按鈕滑過 */
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--navy); border-color: var(--gold); color: var(--white); }

.btn-secondary { background: var(--white); color: var(--blue); }
.btn-secondary:hover,
.btn-secondary:focus-visible { background: var(--blue-tint); color: var(--blue-dark); }

/* ==========================================================================
   4. 頁首
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--navy);
	color: var(--white);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}
.admin-bar .site-header { top: 32px; }

.header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--white);
	text-decoration: none;
	flex: none;
}
.brand:hover { color: var(--white); text-decoration: none; }

/* 深藍底時 Logo 放在白色圓形底上 */
.brand-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--white);
	padding: 3px;
	flex: none;
	overflow: hidden;
}
.brand-logo-img { width: 100%; height: 100%; object-fit: contain; }

.brand-name { font-size: 20px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }

.site-nav {
	display: flex;
	align-items: center;
	gap: 32px;
	margin-left: auto;
}

.primary-nav .menu {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.primary-nav a {
	display: block;
	padding: 8px 14px;
	color: rgba(255, 255, 255, .88);
	font-weight: 500;
	border-radius: 6px;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.primary-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
	color: var(--white);
	background: rgba(255, 255, 255, .12);
}

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--white);
	font-family: "Inter", var(--font);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: .02em;
	white-space: nowrap;
	text-decoration: none;
}
.header-phone:hover { color: var(--white); text-decoration: underline; }
.header-phone .icon { width: 20px; height: 20px; }

.nav-toggle {
	display: none;
	margin-left: auto;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: var(--radius);
	background: transparent;
	cursor: pointer;
	position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	position: absolute;
	left: 50%;
	width: 22px;
	height: 2px;
	margin-left: -11px;
	background: var(--white);
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   5. 區塊與標題
   ========================================================================== */
.section { padding: var(--section-y) 0; background: var(--white); }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
	text-align: center;
	font-size: 28px;
	margin-bottom: 48px;
}
/* 點綴色 1：標題下方短線 */
.section-title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin: 14px auto 0;
	background: var(--gold);
	border-radius: 2px;
}
.section-title-left { text-align: left; margin-bottom: 28px; }
.section-title-left::after { margin-left: 0; }

.block-title { font-size: 22px; margin-bottom: 20px; }

/* 內頁標題橫幅 */
.page-header { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-title { font-size: 36px; margin: 0; }
.page-lead { margin: 12px 0 0; color: var(--muted); font-size: 18px; max-width: 760px; }

/* ==========================================================================
   6. 首頁：主視覺
   ========================================================================== */
.hero { padding: 104px 0 96px; border-bottom: 1px solid var(--line); }
.hero-inner { text-align: center; max-width: 860px; }
.hero-title { font-size: 40px; margin-bottom: 16px; letter-spacing: .06em; }
.hero-subtitle { font-size: 18px; color: var(--muted); margin-bottom: 36px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.hero-actions .btn { min-width: 160px; }

/* ==========================================================================
   7. 首頁：服務卡片
   ========================================================================== */
.service-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.service-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 32px 24px 28px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	text-decoration: none;
	transition: border-color .2s, box-shadow .2s;
}
.service-card:hover {
	text-decoration: none;
	color: var(--text);
	border-color: var(--blue);
	box-shadow: 0 4px 16px rgba(31, 58, 95, .08);
}

.service-card-icon,
.service-detail-icon,
.reason-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--blue-tint);
	color: var(--blue);
	margin-bottom: 20px;
}
.service-card-icon .icon,
.service-detail-icon .icon,
.reason-icon .icon { width: 28px; height: 28px; }

.service-card-title { font-size: 18px; margin-bottom: 10px; }
.service-card-text { color: var(--muted); font-size: 15px; margin-bottom: 20px; flex: 1; }
.service-card-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--blue);
	font-weight: 700;
	font-size: 15px;
}
.service-card-more .icon { width: 18px; height: 18px; transition: transform .2s; }
.service-card:hover .service-card-more .icon { transform: translateX(3px); }

/* ==========================================================================
   8. 首頁：選擇我們的理由
   ========================================================================== */
.reasons {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 32px;
}
.reasons-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reasons-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; margin: 0 auto; }
.reasons-1 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

.reason { text-align: center; }
.reason-icon { background: var(--white); border: 1px solid var(--line); }
.reason-title { font-size: 18px; margin-bottom: 8px; }
.reason-text { color: var(--muted); font-size: 15px; margin: 0; }

/* ==========================================================================
   9. 聯絡資訊與地圖
   ========================================================================== */
.contact-split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 56px;
	align-items: center;
}

.contact-list { list-style: none; margin: 0 0 32px; padding: 0; }
.contact-list li {
	display: grid;
	grid-template-columns: 24px 72px 1fr;
	gap: 12px;
	align-items: start;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .icon { color: var(--blue); width: 22px; height: 22px; margin-top: 3px; }
.contact-list .label { color: var(--muted); font-size: 15px; padding-top: 1px; }
.contact-list a { font-weight: 700; }

.map-box { display: flex; flex-direction: column; gap: 12px; }
.map-frame {
	position: relative;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-alt);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	font-weight: 700;
}
.map-nav-link .icon { width: 18px; height: 18px; }

/* 聯絡頁 */
.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 56px;
	align-items: start;
}
.contact-intro { margin-bottom: 32px; }
.contact-aside { display: flex; flex-direction: column; gap: 24px; }
.info-card {
	padding: 28px 28px 4px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-alt);
}
.info-card .contact-list { margin-bottom: 24px; }
.info-card .contact-list li:first-child { border-top: 0; padding-top: 0; }
.info-card .contact-list li:last-child { border-bottom: 0; }

/* ==========================================================================
   10. 表單
   ========================================================================== */
.contact-form-wrap { scroll-margin-top: calc(var(--header-h) + 24px); }

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
}
.form-field-full { grid-column: 1 / -1; }

.form-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
	color: var(--navy);
	font-size: 15px;
}
.req { color: var(--error); }
.optional { color: var(--muted); font-weight: 400; }

.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #C5CDD8;
	border-radius: var(--radius);
	background: var(--white);
	color: var(--text);
	font: inherit;
	font-size: 16px; /* 避免 iOS 自動放大 */
	transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 40px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(47, 93, 168, .18);
}
.form-field [aria-invalid="true"],
.form-consent [aria-invalid="true"] { border-color: var(--error); }

.field-error { color: var(--error); font-size: 14px; margin: 6px 0 0; }

.form-consent { margin: 24px 0; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--blue); }

.form-captcha { margin-bottom: 24px; }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-notice {
	display: flex;
	gap: 12px;
	padding: 16px 20px;
	margin-bottom: 28px;
	border-radius: var(--radius);
	border: 1px solid;
}
.form-notice p { margin: 4px 0 0; }
.form-notice-success { background: #EDF7F1; border-color: #B7DCC6; color: var(--success); }
.form-notice-success .icon { margin-top: 2px; }
.form-notice-error { display: block; background: #FDF1F0; border-color: #F2C4BF; color: var(--error); }

/* ==========================================================================
   11. 服務項目頁
   ========================================================================== */
.jump-nav {
	position: sticky;
	top: var(--header-h);
	z-index: 50;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}
.admin-bar .jump-nav { top: calc(var(--header-h) + 32px); }
.jump-nav ul {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 12px 0;
	overflow-x: auto;
	scrollbar-width: thin;
}
.jump-nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--navy);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	transition: border-color .2s, background-color .2s;
}
.jump-nav a:hover { border-color: var(--blue); background: var(--blue-tint); }
.jump-nav .icon { width: 18px; height: 18px; color: var(--blue); }

.service-detail { scroll-margin-top: calc(var(--header-h) + 72px); }
.service-detail-inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 64px;
}
.service-detail-num {
	margin: 0 0 4px;
	color: var(--muted);
	font-family: "Inter", var(--font);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .1em;
}
.service-detail-title { font-size: 28px; }
.service-detail-summary { color: var(--text); font-size: 17px; }
.service-detail-sub {
	font-size: 17px;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line);
}
.service-detail-body .btn { margin-top: 8px; }

.prose.check-list ul { list-style: none; padding: 0; margin: 0 0 32px; }
.check-list li {
	position: relative;
	padding: 6px 0 6px 32px;
}
.check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 11px;
	width: 20px;
	height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232F5DA8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.service-audience {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 28px;
}
.service-audience .icon { color: var(--blue); margin-top: 2px; }

/* ==========================================================================
   12. 內文（關於我們、隱私權政策）
   ========================================================================== */
.prose-page { max-width: 820px; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { font-size: 26px; margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 32px 0 12px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote {
	margin: 24px 0;
	padding: 20px 24px;
	background: var(--bg-alt);
	border-left: 4px solid var(--blue);
	border-radius: 0 var(--radius) var(--radius) 0;
	color: var(--navy);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 24px 0; }
.prose img { border-radius: var(--radius); }
.prose .wp-block-image figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); color: var(--navy); }
.prose .wp-block-columns { gap: 24px; margin-bottom: 1.5em; }
.prose .wp-block-gallery { gap: 16px; }

.lead-text { font-size: 18px; color: var(--navy); }

.photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 24px;
	border: 1px dashed #C5CDD8;
	border-radius: var(--radius);
	background: var(--bg-alt);
	color: var(--muted);
	text-align: center;
}

.scope-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	list-style: none !important;
	padding: 0 !important;
}
.scope-grid li {
	margin: 0;
	padding: 16px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	font-weight: 500;
	color: var(--navy);
}

/* 服務流程 */
.prose ol.process-steps {
	list-style: none;
	counter-reset: step;
	padding: 0;
	margin: 0 0 1.5em;
}
.process-steps li {
	counter-increment: step;
	position: relative;
	margin: 0;
	padding: 0 0 28px 64px;
}
.process-steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--navy);
	color: var(--white);
	font-family: "Inter", var(--font);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.process-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 21px;
	top: 48px;
	bottom: 4px;
	width: 2px;
	background: var(--line);
}
.process-steps li:last-child { padding-bottom: 0; }
.process-steps strong { display: block; color: var(--navy); font-size: 18px; padding-top: 8px; margin-bottom: 2px; }

/* 我們的承諾 */
.prose ul.promise-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	list-style: none;
	padding: 0;
}
.promise-grid li {
	margin: 0;
	padding: 20px;
	border: 1px solid var(--line);
	border-top: 3px solid var(--blue);
	border-radius: var(--radius);
	color: var(--muted);
	font-size: 15px;
}
.promise-grid strong { display: block; color: var(--navy); font-size: 17px; margin-bottom: 6px; }

/* CTA */
.cta-band { padding: 56px 0; border-top: 1px solid var(--line); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-title { font-size: 24px; margin-bottom: 4px; }
.cta-text { color: var(--muted); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* ==========================================================================
   13. 頁尾
   ========================================================================== */
.site-footer {
	background: var(--navy);
	color: rgba(255, 255, 255, .82);
	font-size: 15px;
	padding: 56px 0 0;
}
.site-footer a { color: var(--white); }
.footer-main {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
	gap: 48px;
	padding-bottom: 40px;
}
.footer-heading { color: var(--white); font-weight: 700; margin: 0 0 10px; }
.footer-services ul { list-style: none; margin: 0; padding: 0; }
.footer-services li { margin-bottom: 6px; }
.footer-services a { color: rgba(255, 255, 255, .82); }
.footer-services a:hover { color: var(--white); }
.footer-brand { display: flex; gap: 14px; align-items: center; align-self: start; }
.footer-name { color: var(--white); font-size: 18px; font-weight: 700; margin: 0; letter-spacing: .04em; }
.footer-tax { margin: 0; color: rgba(255, 255, 255, .7); }
.footer-info {
	display: grid;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-info .label {
	display: inline-block;
	min-width: 72px;
	color: rgba(255, 255, 255, .6);
}
.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: 14px;
	color: rgba(255, 255, 255, .65);
}
.copyright { margin: 0; }
.footer-nav .menu { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: rgba(255, 255, 255, .85); }

/* 手機底部撥號按鈕 */
.mobile-call-bar { display: none; }

/* ==========================================================================
   14. 平板（768–1023px）
   ========================================================================== */
@media (max-width: 1023px) {
	:root { --header-h: 68px; --section-y: 64px; --gutter: 24px; }

	.nav-toggle { display: block; }

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0;
		padding: 8px var(--gutter) 24px;
		background: var(--navy);
		border-top: 1px solid rgba(255, 255, 255, .12);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
		display: none;
	}
	.site-nav.is-open { display: flex; }

	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav a {
		padding: 14px 4px;
		font-size: 17px;
		border-radius: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .1);
	}
	.primary-nav a:hover,
	.primary-nav .current-menu-item > a,
	.primary-nav .current_page_item > a { background: transparent; color: var(--white); }
	.primary-nav .current-menu-item > a,
	.primary-nav .current_page_item > a { font-weight: 700; }

	.header-phone { margin-top: 20px; justify-content: center; padding: 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius); }

	.hero { padding: 80px 0 72px; }
	.hero-title { font-size: 34px; }

	.service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.reasons,
	.reasons-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.contact-split,
	.contact-layout { grid-template-columns: 1fr; gap: 40px; }
	.contact-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }

	.service-detail-inner { grid-template-columns: 1fr; gap: 24px; }

	.footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
	.footer-brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   15. 手機（< 768px）
   ========================================================================== */
@media (max-width: 767px) {
	:root { --header-h: 64px; --section-y: 52px; --gutter: 16px; }

	body { padding-bottom: 64px; } /* 預留底部撥號列 */

	.brand { gap: 10px; }
	.brand-logo { width: 40px; height: 40px; padding: 4px; }
	.brand-name { font-size: 17px; }
	.nav-toggle { width: 44px; height: 44px; }

	.section-title { font-size: 24px; margin-bottom: 32px; }
	.page-header { padding: 40px 0 32px; }
	.page-title { font-size: 28px; }
	.page-lead { font-size: 16px; }

	.hero { padding: 56px 0 52px; }
	.hero-title { font-size: 28px; letter-spacing: .03em; }
	.hero-subtitle { font-size: 16px; margin-bottom: 28px; }
	.hero-actions { flex-direction: column; align-items: stretch; }

	.service-cards,
	.reasons,
	.reasons-3,
	.reasons-2 { grid-template-columns: 1fr; }
	.service-card { padding: 24px 20px; }
	.reasons { gap: 32px; }

	.contact-aside { grid-template-columns: 1fr; }
	.info-card { padding: 20px 20px 0; }
	.contact-list li { grid-template-columns: 22px 64px 1fr; gap: 10px; }

	.form-grid { grid-template-columns: 1fr; gap: 18px; }
	.btn-block-mobile { width: 100%; }

	.service-detail-title { font-size: 24px; }

	.scope-grid,
	.prose ul.promise-grid { grid-template-columns: 1fr; }

	.cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
	.cta-actions { flex-direction: column; }

	.footer-main { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column-reverse; align-items: flex-start; }

	.mobile-call-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		height: 60px;
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--blue);
		color: var(--white);
		font-weight: 700;
		font-size: 17px;
		text-decoration: none;
		box-shadow: 0 -2px 12px rgba(0, 0, 0, .15);
	}
	.mobile-call-bar:hover { color: var(--white); text-decoration: none; background: var(--blue-dark); }
	.mobile-call-bar .icon { width: 22px; height: 22px; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .jump-nav { top: calc(var(--header-h) + 46px); }
}
@media (max-width: 600px) {
	.admin-bar .site-header,
	.admin-bar .jump-nav { top: 0; }
	.admin-bar .jump-nav { top: var(--header-h); }
}

/* 列印 */
@media print {
	.site-header, .mobile-call-bar, .nav-toggle, .jump-nav, .map-frame { display: none !important; }
	body { padding: 0; }
}
