/*
Theme Name: HGD Child
Theme URI: https://test.handymangaragedoors.com/
Description: Twenty Twenty-Five child theme for Handyman Garage Doors.
Author: Handyman Garage Doors
Template: twentytwentyfive
Version: 1.0.3
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 8.2
Text Domain: hgd-child
*/

/*
 * Project-specific overrides belong here.
 */

html {
	scroll-behavior: smooth;
}

body {
	background: #ffffff !important;
	color: #101828;
	font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hgd-front-page {
	background: #ffffff;
	margin: 0;
	overflow: hidden;
}

body.home .wp-site-blocks > header.wp-block-template-part,
body.home .wp-site-blocks > footer.wp-block-template-part,
body.home .wp-block-post-title {
	display: none !important;
}

body.home .wp-site-blocks,
body.home .wp-site-blocks > main,
body.home .wp-site-blocks > main > .wp-block-group,
body.home .wp-block-post-content,
body.home .entry-content {
	margin: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	width: 100% !important;
}

body.home .wp-site-blocks > main {
	margin-block-start: 0 !important;
}

body.home .entry-content > * {
	max-width: none !important;
}

body.home .entry-content > .hgd-home {
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	width: 100vw !important;
}

.hgd-site-header {
	backdrop-filter: blur(18px);
	background: rgba(255, 255, 255, 0.88);
	border-bottom: 1px solid rgba(226, 232, 240, 0.9);
	box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
	position: sticky;
	top: 0;
	z-index: 9999;
}

.hgd-site-header__inner {
	align-items: center;
	display: grid;
	gap: 24px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	margin: 0 auto;
	max-width: 1180px;
	min-height: 76px;
	padding: 9px 24px;
}

.hgd-site-header__brand {
	align-items: center;
	display: inline-flex;
	min-width: 176px;
}

.hgd-site-header__brand img {
	display: block;
	height: auto;
	max-height: 52px;
	max-width: 220px;
	width: auto;
}

.hgd-site-header__nav {
	justify-self: end;
}

.hgd-primary-menu,
.hgd-primary-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hgd-primary-menu {
	align-items: center;
	display: flex;
	gap: 4px;
}

.hgd-primary-menu > li {
	position: relative;
}

.hgd-primary-menu a {
	color: #111827;
	display: block;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.25;
	padding: 14px 12px;
	text-decoration: none;
}

.hgd-primary-menu a:hover,
.hgd-primary-menu .current-menu-item > a,
.hgd-primary-menu .current-menu-ancestor > a {
	color: #d35400;
}

.hgd-primary-menu .menu-item-has-children > a::after {
	content: "⌄";
	display: inline-block;
	font-size: 13px;
	margin-left: 6px;
}

.hgd-primary-menu .sub-menu {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 18px 45px rgba(17, 24, 39, 0.16);
	left: 0;
	min-width: 245px;
	opacity: 0;
	padding: 8px;
	pointer-events: none;
	position: absolute;
	top: calc(100% + 8px);
	transform: translateY(6px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.hgd-primary-menu li:hover > .sub-menu,
.hgd-primary-menu li:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.hgd-primary-menu .sub-menu a {
	border-radius: 6px;
	font-size: 14px;
	padding: 10px 12px;
}

.hgd-primary-menu .sub-menu a:hover {
	background: #f9fafb;
}

.hgd-site-header__call {
	background: #ff7a1a;
	border-radius: 6px;
	color: #111827;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	line-height: 1.1;
	min-height: 52px;
	padding: 10px 16px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.hgd-site-header__call span {
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
}

.hgd-site-header__call strong {
	font-size: 17px;
	font-weight: 900;
	margin-top: 3px;
}

.hgd-site-header__call:hover {
	background: #fb923c;
	color: #111827;
}

@media (max-width: 1080px) {
	.hgd-site-header__inner {
		gap: 16px;
		grid-template-columns: 1fr auto;
	}

	.hgd-site-header__nav {
		grid-column: 1 / -1;
		justify-self: stretch;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.hgd-primary-menu {
		justify-content: flex-start;
		min-width: max-content;
	}
}

@media (max-width: 640px) {
	.hgd-site-header__inner {
		padding: 8px 16px;
	}

	.hgd-site-header__brand img {
		max-height: 44px;
		max-width: 180px;
	}

	.hgd-site-header__call {
		min-height: 44px;
		padding: 8px 10px;
	}

	.hgd-site-header__call strong {
		font-size: 14px;
	}

	.hgd-primary-menu a {
		font-size: 13px;
		padding: 11px 10px;
	}
}

.hgd-modern-hero {
	background:
		linear-gradient(90deg, rgba(8, 13, 24, 0.92) 0%, rgba(8, 13, 24, 0.8) 36%, rgba(8, 13, 24, 0.3) 68%, rgba(8, 13, 24, 0.16) 100%),
		url("https://test.handymangaragedoors.com/wp-content/uploads/2024/10/handyman-photo-image-4-1280x720.jpg") center / cover no-repeat;
	color: #ffffff;
	min-height: calc(100svh - 76px);
	padding: 84px 24px 48px;
	position: relative;
}

.hgd-modern-hero::before {
	background: linear-gradient(90deg, rgba(5, 8, 15, 0.18) 0%, rgba(5, 8, 15, 0.08) 30%, rgba(5, 8, 15, 0.12) 100%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.hgd-home {
	margin: 0;
}

.hgd-home-next {
	background: #f7f9fc;
	border-top: 1px solid #e6eaf0;
	padding: 34px 24px 58px;
}

.hgd-home-next__inner {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0 auto;
	max-width: 1180px;
}

.hgd-service-card {
	background: #ffffff;
	border: 1px solid #e1e7ef;
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
	padding: 22px;
	text-decoration: none;
	transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hgd-service-card:hover {
	border-color: #ff7a1a;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
	transform: translateY(-2px);
}

.hgd-service-card strong {
	color: #111827;
	display: block;
	font-size: 17px;
	font-weight: 900;
	line-height: 1.2;
	margin-bottom: 8px;
}

.hgd-service-card span {
	color: #667085;
	display: block;
	font-size: 14px;
	line-height: 1.45;
}

.hgd-modern-hero__inner {
	align-items: center;
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1fr);
	margin: 0 auto;
	max-width: 1180px;
	min-height: calc(100svh - 220px);
	position: relative;
	z-index: 1;
}

.hgd-modern-hero__content {
	max-width: 760px;
}

.hgd-modern-hero__eyebrow {
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: #fff3e8;
	display: inline-flex;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.3;
	margin: 0 0 14px;
	padding: 8px 12px;
	text-transform: uppercase;
}

.hgd-modern-hero h1 {
	color: #ffffff;
	font-size: clamp(48px, 5.2vw, 74px);
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.02;
	margin: 0 0 20px;
	max-width: 780px;
}

.hgd-modern-hero__lead {
	color: rgba(255, 255, 255, 0.88);
	font-size: 20px;
	line-height: 1.55;
	margin: 0 0 30px;
	max-width: 680px;
}

.hgd-modern-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 32px;
}

.hgd-modern-hero__button {
	align-items: center;
	border-radius: 7px;
	display: inline-flex;
	font-size: 16px;
	font-weight: 800;
	justify-content: center;
	line-height: 1.2;
	min-height: 54px;
	padding: 16px 24px;
	text-decoration: none;
	transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.hgd-modern-hero__button:hover {
	transform: translateY(-1px);
}

.hgd-modern-hero__button--primary {
	background: #ff7a1a;
	color: #111827;
}

.hgd-modern-hero__button--primary:hover {
	background: #fb923c;
	color: #111827;
}

.hgd-modern-hero__button--secondary {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #ffffff;
}

.hgd-modern-hero__button--secondary:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.hgd-modern-hero__trust {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 720px;
}

.hgd-modern-hero__coverage {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	margin-top: 22px;
	max-width: 720px;
	padding: 14px 16px;
}

.hgd-modern-hero__trust-item {
	border-left: 3px solid #f97316;
	padding-left: 14px;
}

.hgd-modern-hero__trust-item strong,
.hgd-modern-hero__trust-item span {
	display: block;
}

.hgd-modern-hero__trust-item strong {
	color: #ffffff;
	font-size: 18px;
	line-height: 1.2;
}

.hgd-modern-hero__trust-item span {
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
	line-height: 1.35;
	margin-top: 3px;
}

@media (max-width: 980px) {
	.hgd-modern-hero {
		background:
			linear-gradient(180deg, rgba(8, 13, 24, 0.92) 0%, rgba(8, 13, 24, 0.8) 60%, rgba(8, 13, 24, 0.34) 100%),
			url("https://test.handymangaragedoors.com/wp-content/uploads/2024/10/handyman-photo-image-4-1280x720.jpg") center / cover no-repeat;
		min-height: auto;
		padding: 60px 20px 42px;
	}

	.hgd-modern-hero__inner {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.hgd-modern-hero h1 {
		font-size: 42px;
	}
}

@media (max-width: 640px) {
	.hgd-modern-hero {
		padding: 44px 18px 34px;
	}

	.hgd-modern-hero h1 {
		font-size: 34px;
		line-height: 1.08;
	}

	.hgd-modern-hero__lead {
		font-size: 17px;
	}

	.hgd-modern-hero__actions,
	.hgd-modern-hero__trust {
		grid-template-columns: 1fr;
	}

	.hgd-modern-hero__button {
		width: 100%;
	}

	.hgd-modern-hero__coverage {
		max-width: none;
	}
}
