/* ==========================================================================
 * Aluminum Fence Page — fence.css
 * ========================================================================== */

.fence-page {
	padding: 0;
}

.fence-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 30px;
}

/* ==========================================================================
 * Layout: main 2/3 + sidebar 1/3
 * ========================================================================== */
.fence-layout {
	display: block;
	padding-top: 80px;
	padding-bottom: 60px;
}

/* ==========================================================================
 * Main Content
 * ========================================================================== */
.fence-title {
	font-size: 36px;
	font-weight: 700;
	color: #222;
	text-align: center;
	margin: 0 0 20px;
	line-height: 1.1;
}

.fence-intro p {
	font-size: 14px;
	line-height: 1.7;
	color: #555;
	margin: 0 0 14px;
}

.fence-intro img {
	width: 100%;
	height: auto;
	display: block;
	margin: 14px 0 20px;
}

.fence-h2 {
	font-size: 28px;
	font-weight: 700;
	color: #222;
	margin: 30px 0 14px;
	line-height: 1.2;
}

.fence-text {
	font-size: 14px;
	line-height: 1.7;
	color: #555;
	margin-bottom: 20px;
}

.fence-text p {
	margin: 0 0 12px;
}

.fence-text a {
	color: #37729c;
}

.fence-text a:hover {
	text-decoration: underline;
}

.fence-img-left {
	float: left;
	margin: 0 16px 10px 0;
}

.fence-clearfix::after {
	content: "";
	display: table;
	clear: both;
}

/* ==========================================================================
 * Fence Styles Products Grid
 * ========================================================================== */
.fence-styles-title {
	font-size: 28px;
	font-weight: 700;
	color: #222;
	text-align: center;
	margin: 30px 0 20px;
	line-height: 1.2;
}

.fence-products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 10px;
}

.fence-products__card {
	position: relative;
	overflow: hidden;
	border: 1px solid #ebeaea;
	border-bottom-width: 3px;
}

.fence-products__card a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.fence-products__card img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s;
}

.fence-products__card:hover img {
	transform: scale(1.05);
}

.fence-products__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s;
	padding: 10px;
}

.fence-products__card:hover .fence-products__overlay {
	opacity: 1;
}

.fence-products__overlay h4 {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	margin: 0;
	line-height: 1.4;
}

/* ==========================================================================
 * Separator
 * ========================================================================== */
.fence-sep {
	border-top: 1px solid #e0dede;
	border-bottom: 1px solid #e0dede;
	height: 20px;
	margin: 20px 0;
}

/* ==========================================================================
 * Gate Banner
 * ========================================================================== */
.fence-gate-banner {
	position: relative;
	overflow: hidden;
}

.fence-gate-banner a {
	display: block;
	text-decoration: none;
}

.fence-gate-banner img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	display: block;
}

.fence-gate-banner__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.3);
	transition: background 0.3s;
}

.fence-gate-banner:hover .fence-gate-banner__overlay {
	background: rgba(0, 0, 0, 0.45);
}

.fence-gate-banner__overlay h2 {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 6px;
}

.fence-gate-banner__overlay h3 {
	color: #000;
	font-size: 15px;
	margin: 0;
}

/* ==========================================================================
 * Social Sharing
 * ========================================================================== */
.fence-sharing {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #f6f6f6;
	padding: 14px 20px;
	margin-bottom: 30px;
}

.fence-sharing h4 {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 0;
	white-space: nowrap;
}

.fence-sharing__icons {
	display: flex;
	gap: 8px;
}

.fence-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	font-style: normal;
	transition: opacity 0.2s;
}

.fence-social:hover {
	opacity: 0.8;
}

.fence-social i {
	font-style: normal;
}

.fence-social--facebook  { background: #3b5998; }
.fence-social--x         { background: #000; }
.fence-social--reddit    { background: #ff4500; }
.fence-social--linkedin  { background: #0077b5; }
.fence-social--tumblr    { background: #35465c; }
.fence-social--pinterest { background: #bd081c; }

/* ==========================================================================
 * Contact Form
 * ========================================================================== */
.fence-contact {
	max-width: 600px;
}

.fence-contact__heading {
	font-size: 19px;
	font-weight: 400;
	color: #000;
	margin: 0 0 20px;
	line-height: 1.84;
}

.fence-contact__icon {
	margin-right: 6px;
}

.fence-contact__field {
	margin-bottom: 14px;
}

.fence-contact__field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

.fence-required {
	color: #e53935;
}

.fence-contact__field input,
.fence-contact__field textarea {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid #ccc;
	background: #fff;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.fence-contact__field input:focus,
.fence-contact__field textarea:focus {
	border-color: #607d8b;
	outline: none;
}

.fence-contact__submit {
	display: inline-block;
	padding: 10px 28px;
	background: #607d8b;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
}

.fence-contact__submit:hover {
	background: #37474f;
}

/* ==========================================================================
 * Sidebar
 * ========================================================================== */
.fence-sidebar {
	position: sticky;
	top: 80px;
}

.fence-sidebar__widget {
	margin-bottom: 24px;
}

.fence-search {
	display: flex;
	border: 1px solid #ccc;
}

.fence-search input {
	flex: 1;
	padding: 8px 12px;
	border: none;
	font-size: 14px;
	outline: none;
	box-sizing: border-box;
}

.fence-search button {
	padding: 8px 14px;
	background: #37729c;
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 16px;
	transition: background 0.2s;
}

.fence-search button:hover {
	background: #2a5a7a;
}

.fence-sidebar__title {
	font-size: 16px;
	font-weight: 700;
	color: #37729c;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e0dede;
}

.fence-sidebar__menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.fence-sidebar__menu li {
	padding: 6px 0;
}

.fence-sidebar__menu li::before {
	content: "▸ ";
	color: #999;
}

.fence-sidebar__menu a {
	font-size: 14px;
	color: #37729c;
	text-decoration: none;
}

.fence-sidebar__menu a:hover {
	text-decoration: underline;
}

/* ==========================================================================
 * Gate Gallery (page-fence-gate.php)
 * ========================================================================== */
.gate-gallery-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 10px;
}

.gate-gallery-single {
	grid-template-columns: 1fr;
	max-width: 33.333%;
}

.gate-gallery-item img {
	width: 100%;
	height: auto;
	display: block;
}

/* Color Banner */
.gate-color-banner {
	position: relative;
	overflow: hidden;
	margin-bottom: 10px;
}

.gate-color-banner a {
	display: block;
	text-decoration: none;
}

.gate-color-banner img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.gate-color-banner__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.4);
}

.gate-color-banner__overlay h2 {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 4px;
}

.gate-color-banner__overlay p {
	color: #fff;
	font-size: 12px;
	margin: 0;
}

/* ==========================================================================
 * Responsive
 * ========================================================================== */
@media (max-width: 960px) {
	.fence-layout {
		grid-template-columns: 1fr;
	}

	.fence-sidebar {
		position: static;
	}

	.fence-title {
		font-size: 30px;
	}
}

@media (max-width: 640px) {
	.fence-container {
		padding: 0 20px;
	}

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

	.fence-h2 {
		font-size: 22px;
	}

	.fence-products {
		grid-template-columns: 1fr;
	}

	.fence-gate-banner img {
		height: 200px;
	}

	.fence-sharing {
		flex-direction: column;
		align-items: flex-start;
	}

	.fence-img-left {
		float: none;
		display: block;
		margin: 0 0 12px;
	}

	.gate-gallery-row {
		grid-template-columns: 1fr;
	}

	.gate-gallery-single {
		max-width: 100%;
	}
}
