/*
Theme Name:   Spyre 官網
Template:     itfirm
Description:  spyredigi.com 子主題，自訂樣式與功能寫在這裡
Version:      1.0.1
Text Domain:  itfirm-child
*/

/* 在下面加自訂 CSS */

/* ===== 頁尾：手機版排版 ===== */
@media (max-width: 767px) {
	/* 左右留邊距，內容不再貼齊螢幕邊緣 */
	.site-footer-custom .elementor-top-section > .elementor-container {
		padding-left: 24px;
		padding-right: 24px;
	}

	/* 頁尾上方區塊：上下間距 */
	.site-footer-custom .elementor-top-section.elementor-section-boxed {
		padding-top: 40px;
		padding-bottom: 24px;
	}

	/* 欄位之間拉開距離 */
	.site-footer-custom .elementor-section-boxed .elementor-top-column + .elementor-top-column {
		margin-top: 24px;
	}

	/* Logo 縮小一點 */
	.site-footer-custom .ct-logo img {
		max-width: 160px;
		height: auto;
	}

	/* 標題與下方文字的距離 */
	.site-footer-custom .ct-heading .item--title {
		margin-bottom: 8px;
	}

	/* 隱藏沒有內容的標題、文字區塊，以及只剩空元件的欄位 */
	.site-footer-custom .elementor-widget:has(.ct-text-inner:empty),
	.site-footer-custom .elementor-widget:has(.ct-text-editor.elementor-clearfix:empty),
	.site-footer-custom .elementor-top-column:not(:has(img, p, .ct-text-inner:not(:empty))) {
		display: none;
	}

	/* 版權列：上下留白 */
	.site-footer-custom .elementor-section-full_width .ct-text-editor p {
		margin: 16px 0;
		font-size: 14px;
	}
}

/* ===== 頁尾：白底＋細分隔線（電腦版、手機版都套用） ===== */
.site-footer-custom .elementor-top-section {
	background-color: #ffffff !important;
}

/* 頁尾頂端細線，跟上方內容分開 */
.site-footer-custom {
	border-top: 1px solid #e6e6e6;
}

/* 標題：深灰 */
.site-footer-custom .ct-heading .item--title,
.site-footer-custom .ct-heading .item--title .ct-text-inner {
	color: #333333;
}

/* 內文：中灰 */
.site-footer-custom .ct-text-editor p {
	color: #555555;
}

/* 版權列上方的分隔線改細、改淺 */
.site-footer-custom .elementor-divider-separator {
	border-top-width: 1px !important;
	border-top-color: #e6e6e6 !important;
}

/* 版權文字：原本是白字，改成淺灰 */
.site-footer-custom .elementor-section-full_width .ct-text-editor p {
	color: #888888;
}
