/* 前台共用樣式（Bootstrap 5.3） */

/* ---------- Base ---------- */
body {
	background: #fff;
	color: #3e3a39;
	font-family: "微軟正黑體", "Microsoft JhengHei", sans-serif;
	font-size: 15px;
	line-height: 26px;
	overflow-x: hidden;
}

a {
	color: rgba(17, 17, 17, 0.55);
	text-decoration: none;
	transition: color 0.3s;
}

a:hover,
a:focus {
	color: #111;
}

h1, h2, h3, h4, h5, h6 {
	color: #111;
	font-weight: 400;
	line-height: 1.4;
}

h1, h2, h3 { margin: 20px 0 10px; }
h4, h5, h6 { margin: 10px 0; }

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

p, ol, ul, blockquote {
	margin: 0 0 20px;
}

img {
	max-width: 100%;
	height: auto;
}

iframe {
	border: 0;
}

/* ---------- Navbar ---------- */
.site-nav {
	--bs-navbar-padding-y: 0;
	--bs-navbar-color: #111;
	--bs-navbar-hover-color: rgba(17, 17, 17, 0.55);
	--bs-navbar-active-color: #111;
	--bs-navbar-nav-link-padding-x: 15px;
	--bs-navbar-brand-padding-y: 0;
	--bs-navbar-brand-margin-end: 0;
	--bs-navbar-toggler-padding-x: 8px;
	--bs-navbar-toggler-padding-y: 5px;
	--bs-navbar-toggler-border-color: transparent;
	padding: 0;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
	letter-spacing: 2px;
	text-transform: uppercase;
	transition: background-color 0.3s, padding 0.3s;
}

.site-nav:not(.is-scrolled) {
	padding: 60px 0 15px;
	background: transparent;
	box-shadow: none;
}

.site-nav:not(.is-scrolled):has(.navbar-collapse.show, .navbar-collapse.collapsing) {
	background: rgba(255, 255, 255, 0.95);
}

.site-nav > .site-nav-inner {
	align-items: flex-start;
	padding: 0 15px;
}

.site-brand {
	min-width: 0;
}

.site-brand img {
	display: block;
}

.site-nav:not(.is-scrolled) .site-logo-sm,
.site-nav.is-scrolled .site-logo-lg {
	display: none;
}

.site-nav .navbar-nav {
	margin-top: 8px;
}

.site-nav .nav-link {
	padding-top: 0;
	padding-bottom: 0;
	font-size: 15px;
	line-height: 36px;
}

.site-nav .navbar-toggler {
	margin-top: 13px;
}

.site-nav .navbar-toggler:focus {
	box-shadow: none;
}

.site-nav .navbar-toggler:focus-visible {
	outline: 2px solid #111;
}

@media (max-width: 991.98px) {
	.site-nav .navbar-nav {
		margin-top: 9px;
		padding-bottom: 6px;
		background: #fff;
	}
}

@media (min-width: 992px) {
	.site-nav .navbar-nav .site-nav-fb {
		width: 36px;
		height: 36px;
		padding: 0;
		overflow: hidden;
		background: url("../images/top_icon.png") 0 -144px no-repeat;
		font-size: 0;
	}

	.site-nav .navbar-nav .site-nav-fb:hover,
	.site-nav .navbar-nav .site-nav-fb:focus {
		background-position: 0 -180px;
	}
}

@media (min-width: 1311px) {
	.site-nav > .site-nav-inner {
		padding: 0 168px;
	}
}

/* ---------- Page ---------- */
.site-main {
	padding: 270px 0 140px;
}

.site-container {
	padding: 0 15px;
}

.site-container .row {
	--bs-gutter-x: 30px;
}

@media (min-width: 1311px) {
	.site-container {
		padding: 0 183px;
	}
}

.page-head {
	display: flow-root;
	margin-bottom: 40px;
}

.page-head h5 {
	margin: 10px 0;
}

.c1 {
	color: #f8931c;
}

/* ---------- Back to top ---------- */
.scroll-up {
	position: fixed;
	right: 7px;
	bottom: 7px;
	z-index: 1030;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 2px;
	background: #fff;
	color: #000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.scroll-up.is-visible {
	opacity: 0.6;
	visibility: visible;
}

.scroll-up:hover,
.scroll-up:focus {
	color: #000;
	opacity: 1;
}

/* ---------- About ---------- */
.about-body {
	display: flow-root;
}

.about-image {
	display: block;
	/* Keeps the padding outside the width attribute. */
	box-sizing: content-box;
	padding-bottom: 30px;
}

@media (min-width: 992px) {
	.about-image {
		float: right;
		padding: 0 0 0 20px;
	}
}

/* ---------- Projects ---------- */
.project-filter-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
}

.project-filter-head h5 {
	margin: 10px 0;
}

.project-filter {
	width: 100%;
	margin-bottom: 7px;
}

@media (min-width: 768px) {
	.project-filter {
		width: 320px;
		margin-top: 8px;
	}
}

.project-filter-toggle {
	display: block;
	width: 100%;
	padding: 10px 15px;
	border: 0;
	background: #666464 url("../images/micon.png") right center no-repeat;
	color: #fff;
	line-height: 20px;
	text-align: left;
}

.project-filter-menu {
	--bs-dropdown-min-width: 100%;
	--bs-dropdown-padding-y: 5px;
	--bs-dropdown-bg: #666464;
	--bs-dropdown-border-width: 0;
	--bs-dropdown-border-radius: 0;
	--bs-dropdown-font-size: 14px;
	--bs-dropdown-link-color: #fff;
	--bs-dropdown-link-hover-color: #fff;
	--bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.12);
	--bs-dropdown-link-active-color: #f8931c;
	--bs-dropdown-link-active-bg: transparent;
	--bs-dropdown-item-padding-x: 20px;
	--bs-dropdown-item-padding-y: 3px;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
	line-height: 20px;
}

.project-grid {
	margin: 0 -15px;
	padding: 0;
	list-style: none;
	perspective: 1300px;
}

.project-grid::after {
	content: "";
	display: block;
	clear: both;
}

/* Floated so the columns already match Masonry's before the script runs, instead of jumping into place. */
.project-grid-item {
	float: left;
	width: 25%;
	padding: 7px;
}

.project-grid-item a,
.project-grid-item img {
	display: block;
}

.project-grid-item img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

@media (max-width: 900px) {
	.project-grid-item {
		width: 50%;
	}
}

@media (max-width: 400px) {
	.project-grid-item {
		width: 100%;
	}
}

.project-grid.is-animated .project-grid-item {
	opacity: 0;
}

.project-grid.is-animated .project-grid-item.is-shown {
	opacity: 1;
}

.project-grid.is-animated .project-grid-item.is-animating {
	transform: rotateX(-80deg);
	transform-origin: 0 0;
	transform-style: preserve-3d;
	animation: project-flip 0.8s ease-in-out forwards;
}

@keyframes project-flip {
	to {
		transform: rotateX(0);
		opacity: 1;
	}
}

/* ---------- Error ---------- */
.error-page {
	padding: 80px 0;
	text-align: center;
}

/* ---------- Project detail ---------- */
.project-info {
	padding-bottom: 40px;
}

.project-title {
	font-size: 24px;
}

.project-block {
	display: flow-root;
	padding-top: 40px;
}

@media (min-width: 992px) {
	.project-block .tags,
	.project-block p {
		max-width: 320px;
	}
}

.tags a {
	position: relative;
	display: inline-block;
	height: 26px;
	margin: 0 15px 10px 0;
	padding: 1px 15px 1px 10px;
	border-radius: 2px 0 0 2px;
	background: #f7f7f7;
	/* A shade darker than the link grey: 11px text on this background needs it to stay readable (WCAG AA). */
	color: #666;
	font-size: 11px;
	letter-spacing: 1px;
	line-height: 24px;
}

.tags a::before {
	position: absolute;
	top: 0;
	right: -8px;
	width: 0;
	height: 0;
	border-top: 13px solid transparent;
	border-bottom: 13px solid transparent;
	border-left: 8px solid #f7f7f7;
	content: "";
	transition: border-color 0.3s;
}

.tags a::after {
	position: absolute;
	top: 11px;
	right: 4px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #fff;
	content: "";
}

.tags a:hover,
.tags a:focus {
	background: #f0f0f0;
	color: #111;
}

.tags a:hover::before,
.tags a:focus::before {
	border-left-color: #f0f0f0;
}

.project-slider,
.project-body {
	max-width: 800px;
	margin: 0 0 30px;
}

.project-slider .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.project-body video {
	max-width: 100%;
	height: auto;
}

.project-gallery-image {
	display: block;
	margin-bottom: 40px;
}

.project-back {
	text-align: center;
}

.project-back a {
	padding-right: 30px;
	background: url("../images/arr.png") right center no-repeat;
	color: #3e3a39;
	font-size: 21px;
	font-weight: bold;
	letter-spacing: 2px;
}

.project-back a:hover,
.project-back a:focus {
	background-image: url("../images/arr2.png");
	color: #f8931c;
}

/* ---------- Contact ---------- */
.contact-map {
	width: 90%;
	height: 420px;
}

.contact-map iframe {
	display: block;
	width: 100%;
	height: 100%;
}

@media (max-width: 991.98px) {
	.contact-map {
		margin-bottom: 40px;
	}
}

.contact-form .form-control {
	padding: 15px 0;
	border: 0;
	border-bottom: 1px solid #333;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.12);
	box-shadow: none;
	color: #333;
	font-size: 15px;
	letter-spacing: 1px;
	line-height: 1.33333;
	transition: border-color 0.3s, background-color 0.3s;
}

.contact-form .form-control::placeholder {
	color: #333;
	opacity: 1;
}

.contact-form .form-control:focus {
	border-bottom-color: #84ba3f;
	background: rgba(255, 255, 255, 0.19);
	box-shadow: none;
}

.contact-form textarea.form-control {
	resize: vertical;
}

.button {
	display: inline-block;
	padding: 10px 20px;
	border: 2px solid #84ba3f;
	border-radius: 3px;
	background: transparent;
	color: #323232;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 1px;
	text-align: center;
	text-transform: uppercase;
	transition: background-color 0.3s, color 0.3s;
}

.button:hover,
.button:focus {
	background: #84ba3f;
	color: #fff;
}

.button svg {
	margin-left: 2px;
	vertical-align: -2px;
}

/* ---------- Home ---------- */
.is-home {
	color: #626262;
	font-size: 17px;
	line-height: 1.5;
}

#site-nav.site-nav-home {
	--bs-navbar-color: #fff;
	--bs-navbar-hover-color: #f8931c;
	--bs-navbar-active-color: #666;
	--bs-navbar-nav-link-padding-x: 13px;
	--bs-navbar-toggler-border-color: transparent;
	padding: 0;
	background: #323232;
	box-shadow: none;
	letter-spacing: 0;
}

#site-nav.site-nav-home > .site-nav-inner {
	align-items: center;
	min-height: 60px;
	padding: 0 15px;
}

.site-logo-home {
	display: block;
	width: 150px;
	height: 30px;
}

#site-nav.site-nav-home:not(.is-scrolled) .site-brand {
	visibility: hidden;
}

#site-nav.site-nav-home .navbar-nav {
	margin-top: 0;
}

#site-nav.site-nav-home .nav-link {
	font-size: 19px;
}

#site-nav.site-nav-home .navbar-toggler {
	margin-top: 0;
}

#site-nav.site-nav-home .navbar-toggler:focus-visible {
	outline-color: #fff;
}

@media (max-width: 991.98px) {
	#site-nav.site-nav-home .navbar-nav {
		--bs-navbar-color: #323232;
		--bs-navbar-active-color: #f8931c;
		margin-bottom: 10px;
		padding: 0;
	}

	#site-nav.site-nav-home .nav-link {
		padding: 10px 20px;
		border-bottom: 1px solid #eee;
		line-height: 20px;
	}

	.home-main {
		padding-top: 60px;
	}
}

@media (min-width: 992px) {
	#site-nav.site-nav-home > .site-nav-inner {
		max-width: 990px;
		margin: 0 auto;
	}

	#site-nav.site-nav-home:not(.is-scrolled) {
		position: absolute;
		background: transparent;
	}

	#site-nav.site-nav-home:not(.is-scrolled) .nav-link {
		padding-top: 27px;
		padding-bottom: 27px;
		line-height: 36px;
	}

	#site-nav.site-nav-home.is-scrolled {
		animation: site-nav-drop 0.4s ease-out;
	}

	#site-nav.site-nav-home.is-scrolled .nav-link {
		padding-top: 20px;
		padding-bottom: 20px;
		line-height: 20px;
	}
}

@media (min-width: 1200px) {
	#site-nav.site-nav-home > .site-nav-inner {
		max-width: 1170px;
	}
}

@keyframes site-nav-drop {
	from {
		transform: translateY(-100%);
	}
}

.home-hero {
	position: relative;
	height: 100vh;
	overflow: hidden;
}

.home-hero-bg {
	position: absolute;
	inset: 0;
	background: url("../images/home/01.webp") 50% 50% / cover no-repeat;
	will-change: transform;
}

.scroll-down {
	position: absolute;
	bottom: 30px;
	left: 50%;
	width: 34px;
	height: 58px;
	margin-left: -17px;
	border: 2px solid #fff;
	border-radius: 20px;
	text-align: center;
}

.scroll-down i {
	display: inline-block;
	width: 4px;
	height: 10px;
	margin-top: 8px;
	border-radius: 3px;
	background: #fff;
	animation: scroll-down-bounce 3s infinite;
}

@keyframes scroll-down-bounce {
	50% {
		transform: translateY(25px);
	}
}

@media (min-width: 1701px) {
	.scroll-down {
		bottom: 60px;
	}
}

.home-title {
	margin: 40px 0;
	color: #f8931c;
	font-size: 26px;
	line-height: 38px;
	text-align: center;
}

.home-inner {
	padding: 0 183px;
}

.home-inner .row {
	--bs-gutter-x: 30px;
}

@media (max-width: 900px) {
	.home-inner {
		padding: 0 25px;
	}
}

.home-projects {
	padding-bottom: 80px;
	background: url("../images/home/02.webp") 50% 100% no-repeat;
	scroll-margin-top: 60px;
}

.home-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0 auto 50px;
}

.home-filters button {
	margin: 0 10px;
	padding: 6.5px 10px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: #666464;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
}

.home-filters button:hover,
.home-filters button.active {
	border-bottom-color: #f8931c;
}

.home-grid {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	margin-right: -15px;
}

.home-grid-item {
	width: 25%;
	padding: 0 15px 15px 0;
}

.home-card {
	position: relative;
	overflow: hidden;
}

.home-card img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.35s;
}

.home-card:hover img,
.home-card:focus-within img {
	transform: scale(1.2);
}

.home-card::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #fff;
	opacity: 0;
	content: "";
	transition: opacity 0.7s cubic-bezier(0.68, 0.11, 0.13, 0.98);
}

.home-card-overlay {
	position: absolute;
	top: 60%;
	left: 0;
	z-index: 2;
	width: 100%;
	padding: 10px 0 10px 20px;
	opacity: 0;
	text-align: center;
	transform: translateY(-50%);
	transition: top 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.home-card:hover::before,
.home-card:focus-within::before {
	opacity: 1;
	transition-duration: 0.6s;
}

.home-card:hover .home-card-overlay,
.home-card:focus-within .home-card-overlay {
	top: 50%;
	opacity: 1;
}

.home-card-overlay h3 {
	margin: 0 0 5px;
	color: #363636;
	font-size: 17px;
	font-weight: 600;
	line-height: 26px;
}

.home-card-overlay a {
	color: #363636;
}

.home-card-overlay a:hover,
.home-card-overlay a:focus {
	color: #f8931c;
}

@media (max-width: 991.98px) {
	.home-grid-item {
		width: 50%;
	}
}

@media (max-width: 767.98px) {
	.home-grid-item {
		width: 100%;
	}
}

@media (max-width: 600px) {
	.home-grid {
		margin-right: 0;
	}

	.home-grid-item {
		padding-right: 0;
	}
}

.home-more {
	padding-top: 30px;
	text-align: center;
}

.more-link {
	padding: 10px 60px;
	border: 1px solid #bdbdbd;
	color: #959595;
}

.more-link:hover,
.more-link:focus {
	border-color: #f8931c;
	color: #f8931c;
}

.home-about {
	display: flex;
	flex-wrap: wrap;
}

.home-about-text,
.home-about-image {
	width: 100%;
	min-height: 526px;
}

.home-about-text {
	padding: 60px 15px 0 168px;
	background: url("../images/home/03.webp");
}

.home-about-image {
	background: url("../images/home/04.webp");
}

.home-about h1 {
	margin: 0 0 8px;
	color: #f8931c;
	font-size: 29px;
	line-height: 40px;
}

.home-about h1 span {
	color: #434343;
	font-size: 17px;
	font-weight: 600;
}

.home-about h2 {
	margin: 0 0 8px;
	color: #434343;
	font-size: 26px;
	font-weight: 600;
	line-height: 38px;
}

.home-about p {
	margin: 0 0 16px;
	line-height: 36px;
}

@media (min-width: 768px) {
	.home-about-text,
	.home-about-image {
		width: 50%;
	}
}

@media (max-width: 900px) {
	.home-about-text {
		padding-left: 10px;
	}
}

.home-contact {
	padding: 80px 0;
	scroll-margin-top: 60px;
}

.home-contact p {
	margin: 0 0 16px;
}

.home-contact .form-control {
	margin-bottom: 20px;
}

.home-map {
	height: 550px;
}

.home-map iframe {
	display: block;
	width: 100%;
	height: 100%;
}

.is-home .button {
	border-color: #f8931c;
	background: #f8931c;
}

.is-home .button:hover,
.is-home .button:focus {
	border-color: #323232;
	background: #323232;
	color: #fff;
}

@media (max-width: 767.98px) {
	.home-title {
		margin-bottom: 30px;
		font-size: 24px;
		line-height: 34px;
	}

	.home-projects {
		padding-bottom: 50px;
	}

	.home-about h2 {
		font-size: 22px;
		line-height: 30px;
	}

	.home-contact {
		padding: 50px 0;
	}
}

.home-footer {
	display: flow-root;
	height: 436px;
	padding: 180px 15px 0 210px;
	border-top: 4px solid #fbad16;
	background: #f5f4f4 url("../images/home/05.webp") right top no-repeat;
}

.home-footer-logo {
	float: left;
	margin-right: 36px;
}

.home-footer-info {
	margin: 0;
	font-size: 15px;
	font-style: normal;
	line-height: 22.5px;
}

@media (max-width: 720px) {
	.home-footer {
		padding-left: 45px;
	}
}

.is-home .scroll-up {
	right: 15px;
	bottom: 105px;
	flex-direction: column;
	width: 40px;
	height: 40px;
	border-radius: 3px;
	background: #f8931c;
	color: #fff;
}

.is-home .scroll-up.is-visible {
	opacity: 1;
}

.is-home .scroll-up span {
	font-size: 11px;
	line-height: 8px;
}

@media (prefers-reduced-motion: reduce) {
	.scroll-down i,
	#site-nav.site-nav-home.is-scrolled {
		animation: none;
	}

	.home-card img {
		transition: none;
	}
}
