/*
Theme Name: Roofing heroes
Template: twentytwentyfive
Version: 1.0.0
*/

/* Maximum content width - 1344px */
:root {
	--wp--style--global--content-size: 1344px;
	--wp--style--global--wide-size: 1344px;
}

/* Header Styles */
/* Custom Header from header-custom.php */
header {
	font-family: "Montserrat", sans-serif;
	line-height: 1.5;
	font-weight: 600;
	font-size: 16px;
	color: #FFFFFF;

	background-color: #F46F2B;
	height: 104px;

	position: sticky;
	top: 0;
	z-index: 1000;
}

.desktop-header-content {
	padding: 24px 0px;

	display: flex;
	flex-flow: row wrap;
	flex: 1 auto;
	justify-content: space-between;
	height: min-content;
}

.container {
	max-width: 1344px;
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	flex: 1;
}


.logo {
	position: relative;
}

.logo a {
	display: block;
	text-decoration: none;
}

.logo img {
	height: 56px;
	width: auto;
}

.fallback-logo {
	display: flex;
	align-items: center;
	gap: 16px;
}

.logo-icon {
	background: white;
	padding: 8px;
	border-radius: 4px;
}

.logo-text {
	display: flex;
	flex-direction: column;
}

.logo-line-1,
.logo-line-2 {
	font-size: 14px;
	font-weight: 600;
	color: #16243E;
	text-transform: uppercase;
	line-height: 1;
}

.logo-line-2 {
	font-size: 16px;
	left: 0px;
}

.logo img {
	display: block;
	height: auto;
}

.nav-list {
	display: flex;
	list-style: none;
	gap: 32px;
	padding-left: 50px;
}

.nav-list a {
	text-decoration: none;
	outline: none;
	color: #FFFFFF;
	font-weight: 600;
	transition: color 0.3s ease;
}

.menu-item-has-children {
	position: relative;
}

.menu-item-has-children a svg {
	transition: transform 0.3s ease;
}

.menu-item-has-children:hover a svg {
	transform: rotate(180deg);
}

/* Desktop only - hover submenu display */

.sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	list-style: none;
	background-color: #16243E;
	padding: 0;
	margin: 0;

	white-space: nowrap;
	min-width: max-content;
	padding-top: 8px;
	padding-bottom: 8px;
}

@media not (max-width: 1156px) {
    .menu-item-has-children:hover .sub-menu {
        display: block;
    }
}

.sub-menu li {
	margin: 0;
	padding: 0 16px;
}

.sub-menu a {
	display: block;
	text-decoration: none;
	color: #FFFFFF;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.5;
	padding: 16px 16px;
	border-bottom: 1px solid #FFFFFF1A;
}
.sub-menu li:last-child a {
	border-bottom: none;
}

.sub-menu a:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.header-buttons {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 16px;
}

.contact-number {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 31px;
	border: 1px solid #FFFFFF;
	color: #FFFFFF;
}

.header-buttons button {
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 150%;
	cursor: pointer;
}

.btn-call {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 15px 31px;
	background: none;
	border: 1px solid #FFFFFF;
	color: #FFFFFF;
	cursor: pointer;
	gap: 12px;
}

.btn-call svg {
	width: 15px;
	height: 15px;
	display: block;
	flex-shrink: 0;
}

.btn-request {
	color: #FFFFFF;
	background: #16243E;
	padding: 16px 32px;
	border: none;
}

.menu-open,
.menu-close {
    display: none;
    cursor: pointer;
    padding: 6px 3px;
}


.menu-open svg,
.menu-close svg {
	display: block;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-open svg {
	width: 18px;
	height: 12px;
}

.menu-close svg {
	width: 14px;
	height: 14px;
	transform: rotate(0deg);
}

.menu-close svg.rotate-open {
	transform: rotate(180deg);
}

.menu-close svg.rotate-close {
	transform: rotate(-180deg);
}

.phone-icon-mobile {
	display: none;
}

.page-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(255, 255, 255, 0.9);
	z-index: 998;
}

.mobile-menu-wrapper {
	display: none;
}

@media (max-width: 1156px) {
	/* sm */
	
	header {
		height: 56px;
	}

	.container {
		padding: 9px 10px 9px 20px;
		box-sizing: border-box;
		justify-content: space-between;
		align-items: center;
	}

	.menu-open,
	.menu-close {
		display: block;
		order: 1;
	}

	.logo {
		order: 2;
		position: absolute;
		top: 0px;
		left: 50%;
		transform: translateX(-50%);
		z-index: 1000;
	}

	.logo img {
		width: 100px;
	}

	.desktop-header-content {
		display: none;
	}

	.phone-icon-mobile {
		display: block;
		order: 3;
		font-size: 13px;
		text-decoration: none;
		text-align: left;
	}

	.phone-icon-mobile svg {
		width: 15px;
		height: 15px;
		display: block;
	}

	.page-overlay.active {
		display: block;
	}

	.mobile-menu-wrapper {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: #16243E;
		z-index: 999;
	}

	.mobile-menu-wrapper.active {
		display: block;
	}

	.mobile-menu {
		padding: 80px 24px 32px 24px;
	}

	.mobile-header-buttons {
		padding: 0 24px 24px 24px;
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.mobile-nav-list {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	.mobile-nav-list > li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		padding: 16px 0px;
	}

	.mobile-nav-list a {
		display: inline;
		text-decoration: none;
		color: #FFFFFF;
		font-family: "Montserrat", sans-serif;
		font-weight: 600;
		font-size: 16px;
		line-height: 1.5;
	}

	.menu-item-has-children {
		position: relative;
	}

	.services-header-mobile {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}

	.services-toggle-mobile {
		cursor: pointer;
		display: inline-flex;
		align-items: center;
		color: #FFFFFF;
	}

	.services-toggle-mobile svg {
		transition: transform 0.3s ease;
	}

	.menu-item-has-children.active .services-toggle-mobile svg {
		transform: rotate(180deg);
	}

	.sub-menu.submenu-mobile {
		display: none;
		position: relative;
		list-style: none;
		padding: 0;
		border-left: 1px solid rgba(255, 255, 255, 0.2);
	}

	.sub-menu.submenu-mobile li {
		margin-top: 16px;
		padding: 0px;
	}

	.menu-item-has-children .sub-menu.submenu-mobile {
		display: none;
	}

	.menu-item-has-children.active .sub-menu.submenu-mobile {
		display: block;
	}

	.sub-menu.submenu-mobile a {
		padding: 0px 0px 0px 24px;
		font-weight: 500;
		border-bottom: none;
	}
	.mobile-header-buttons {
		display: flex;
		gap: 40px;
		flex-direction: row;
		justify-content: center;
	}

	.mobile-header-buttons .btn-request {
		background: #F46F2B;
	}
}

@media (max-width: 768px) {
	.mobile-header-buttons {
		display: flex;
		gap: 16px;
		flex-direction: column;
		gap: 16px;
	}
}


/* Typography line-height settings for font sizes */
.has-extra-small-font-size {
	line-height: 1.4;
}

.has-small-font-size {
	line-height: 1.5;
}

.has-regular-font-size {
	line-height: 1.5;
}

.has-large-font-size {
	line-height: 1.5;
}

.has-extra-large-font-size {
	line-height: 1.5;
}
