/* ============================================
   Hanson's Roofing — Component Styles
   Matches Smart Construction header/footer/nav
   ============================================ */

/* --- Container --- */
.hr-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

/* --- Override parent theme centering on header/footer --- */
.site-header,
.site-header *,
.site-footer,
.site-footer * {
	box-sizing: border-box;
}

.site-header {
	text-align: left;
}

/* ============================================
   TOP HEADER BAR (white background)
   ============================================ */
.hr-top-header {
	background: #FFFFFF;
	border-bottom: 1px solid #eee;
	min-height: 80px;
	display: flex;
	align-items: center;
}

.hr-top-header-inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 15px 0;
	width: 100%;
	gap: 0;
}

/* Header columns */
.hr-header-col {
	padding-right: 2.75%;
	margin-right: 2.75%;
	flex-shrink: 0;
}

.hr-header-col:first-child {
	margin-right: 5.5%;
	padding-right: 0;
}

.hr-header-col:last-child {
	margin-right: 0;
	padding-right: 0;
}

/* Logo column — left aligned, fixed width */
.hr-logo-col {
	flex-shrink: 0;
	flex-grow: 0;
	text-align: left;
}

.hr-logo-col .custom-logo-link {
	display: inline-block;
	line-height: 0;
	max-width: 220px;
}

.hr-logo-col .custom-logo-link img,
.hr-logo-col .custom-logo,
.hr-logo-col img {
	max-width: 220px !important;
	width: 220px !important;
	height: auto !important;
	max-height: 70px !important;
	object-fit: contain;
}

.hr-logo-col .site-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.hr-logo-col .site-title a {
	color: #00205B;
	text-decoration: none;
}

/* Phone column */
.hr-phone-col {
	border-right: 1px solid #ddd;
}

.hr-header-widget {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hr-icon-wrapper {
	flex-shrink: 0;
}

.hr-icon-wrapper svg {
	display: block;
}

.hr-widget-label {
	display: block;
	font-size: 0.75rem;
	color: #888;
	line-height: 1.3;
	margin-bottom: 2px;
}

.hr-widget-value {
	font-size: 1.1rem;
	font-weight: 700;
	color: #111;
	text-decoration: none;
	line-height: 1.3;
}

.hr-widget-value:hover {
	color: #00AEC7;
}

/* Social column */
.hr-social-col {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hr-social-icons {
	display: flex;
	gap: 10px;
}

.hr-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #00205B;
	transition: color 0.2s ease;
}

.hr-social-link:hover {
	color: #00AEC7;
}

.hr-social-link:hover svg {
	fill: #00AEC7;
}

/* ============================================
   NAVIGATION BAR (navy background)
   ============================================ */
.hr-nav-bar {
	background: #00205B;
}

.hr-main-navigation {
	position: relative;
}

/* Nav menu list */
.hr-nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

.hr-nav-menu li {
	position: relative;
	display: inline-block;
	padding-right: 0;
}

.hr-nav-menu li a {
	display: block;
	padding: 18px 20px;
	color: #FFFFFF;
	text-decoration: none;
	font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	line-height: 14px;
	transition: color 0.2s ease;
}

.hr-nav-menu li a:hover,
.hr-nav-menu li.current-menu-item > a,
.hr-nav-menu li.current_page_item > a {
	color: #00AEC7;
}

/* Submenu / dropdown */
.hr-nav-menu li ul.sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #FFFFFF;
	min-width: 220px;
	padding: 0.5rem 0;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
	z-index: 100;
	list-style: none;
	margin: 0;
}

.hr-nav-menu li:hover > ul.sub-menu,
.hr-nav-menu li:focus-within > ul.sub-menu {
	display: block;
}

.hr-nav-menu li ul.sub-menu li {
	display: block;
}

.hr-nav-menu li ul.sub-menu li a {
	color: #333;
	padding: 10px 20px;
	font-size: 13px;
	text-transform: none;
	letter-spacing: 0;
}

.hr-nav-menu li ul.sub-menu li a:hover {
	color: #00AEC7;
	background: #f5f5f5;
}

/* Mobile menu toggle */
.hr-menu-toggle {
	display: none;
	background: transparent;
	border: none;
	padding: 15px 0;
	cursor: pointer;
}

.hr-menu-toggle-icon,
.hr-menu-toggle-icon::before,
.hr-menu-toggle-icon::after {
	display: block;
	width: 24px;
	height: 2px;
	background: #FFFFFF;
	position: relative;
	transition: transform 0.2s ease;
}

.hr-menu-toggle-icon::before,
.hr-menu-toggle-icon::after {
	content: '';
	position: absolute;
	left: 0;
}

.hr-menu-toggle-icon::before {
	top: -7px;
}

.hr-menu-toggle-icon::after {
	top: 7px;
}

/* ============================================
   FOOTER
   ============================================ */
.hr-footer-accent {
	height: 3px;
	background: #00AEC7;
}

.hr-footer-widgets {
	background: #F5F5F5;
	padding: 50px 0;
	border-top: 1px solid #ddd;
}

.hr-footer-inner {
	display: flex;
	gap: 40px;
}

.hr-footer-col {
	flex: 1;
}

.hr-footer-heading {
	font-family: 'Rubik', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #00205B;
	text-transform: uppercase;
	margin: 0 0 15px 0;
}

.hr-footer-col p {
	font-size: 0.9rem;
	color: #686868;
	line-height: 1.7;
	margin: 0 0 10px 0;
}

.hr-footer-contact a {
	font-size: 0.95rem;
	color: #00205B;
	text-decoration: none;
	font-weight: 600;
}

.hr-footer-contact a:hover {
	color: #00AEC7;
}

.hr-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hr-footer-menu li {
	margin-bottom: 8px;
}

.hr-footer-menu li a {
	font-size: 0.9rem;
	color: #686868;
	text-decoration: none;
	transition: color 0.2s ease;
}

.hr-footer-menu li a:hover {
	color: #00AEC7;
}

/* Copyright bar */
.hr-copyright {
	background: #00205B;
	padding: 15px 0;
	text-align: center;
}

.hr-copyright p {
	margin: 0;
	font-size: 0.8rem;
	color: #FFFFFF;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
	.hr-top-header {
		max-height: none;
		min-height: auto;
	}

	.hr-top-header-inner {
		flex-wrap: wrap;
		gap: 15px;
	}

	.hr-header-col {
		margin-right: 0;
		padding-right: 0;
	}

	.hr-phone-col {
		border-right: none;
	}

	.hr-logo-col {
		width: 100%;
		margin-right: 0;
	}

	/* Mobile nav */
	.hr-menu-toggle {
		display: block;
	}

	.hr-nav-menu {
		display: none;
		flex-direction: column;
		width: 100%;
	}

	.hr-nav-menu.active {
		display: flex;
	}

	.hr-nav-menu li {
		display: block;
	}

	.hr-nav-menu li a {
		padding: 15px 20px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.hr-nav-menu li ul.sub-menu {
		position: static;
		box-shadow: none;
		background: rgba(0, 0, 0, 0.1);
	}

	.hr-nav-menu li ul.sub-menu li a {
		color: #FFFFFF;
		padding-left: 40px;
	}

	.hr-nav-menu li:hover > ul.sub-menu {
		display: block;
	}
}

@media (max-width: 768px) {
	.hr-logo-col .custom-logo,
	.hr-logo-col img {
		max-width: 180px;
		max-height: 55px;
	}

	.hr-footer-inner {
		flex-direction: column;
		gap: 30px;
	}

	.hr-social-col {
		display: none;
	}
}
