/**
 * Harris Lieberman Firm Master — Global Layout, Header, Footer & Shared Primitives
 *
 * Strictly uses CSS Custom Properties from assets/css/variables.css.
 *
 * @package HarrisLieberman
 */

/* =========================================================================
   Shared Section & Typography Utilities
   ========================================================================= */
.hl-section {
	padding: var(--hl-section-py) 0;
}

.hl-section--white {
	background-color: var(--hl-color-white);
}

.hl-section--light {
	background-color: var(--hl-color-bg-light);
}

.hl-section--primary {
	background-color: var(--hl-color-primary);
	color: var(--hl-color-text-on-dark);
}

.hl-eyebrow {
	display: inline-block;
	font-family: var(--hl-font-body);
	font-size: var(--hl-fs-xs);
	font-weight: var(--hl-fw-semibold);
	text-transform: uppercase;
	letter-spacing: var(--hl-ls-eyebrow);
	color: var(--hl-color-accent);
	margin-bottom: var(--hl-space-3);
}

.hl-section--primary .hl-eyebrow {
	color: var(--hl-color-text-on-dark-muted);
}

.hl-section-title {
	font-family: var(--hl-font-heading);
	font-size: var(--hl-fs-3xl);
	font-weight: var(--hl-fw-regular);
	line-height: var(--hl-lh-tight);
	color: var(--hl-color-text-primary);
	margin-bottom: var(--hl-space-4);
}

.hl-section--primary .hl-section-title {
	color: var(--hl-color-text-on-dark);
}

.hl-section--primary .hl-section-title em {
	color: var(--hl-color-text-on-dark);
	font-style: italic;
}

.hl-section-subtitle {
	font-size: var(--hl-fs-base);
	line-height: var(--hl-lh-relaxed);
	color: var(--hl-color-text-muted);
	max-width: 680px;
	margin-top: 0;
	margin-bottom: var(--hl-space-10);
}

.hl-section--primary .hl-section-subtitle {
	color: var(--hl-color-text-on-dark-muted);
}

.hl-text-center .hl-section-subtitle {
	margin-left: auto;
	margin-right: auto;
}

/* =========================================================================
   Shared Buttons
   ========================================================================= */
.hl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--hl-space-2);
	padding: var(--hl-space-3) var(--hl-space-6);
	font-family: var(--hl-font-body);
	font-size: var(--hl-fs-sm);
	font-weight: var(--hl-fw-medium);
	line-height: 1.2;
	border-radius: var(--hl-radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background-color var(--hl-transition-fast), color var(--hl-transition-fast), border-color var(--hl-transition-fast), transform var(--hl-transition-fast);
}

.hl-btn--accent {
	background-color: var(--hl-color-accent);
	color: var(--hl-color-white);
	border-color: var(--hl-color-accent);
}

.hl-btn--accent:hover,
.hl-btn--accent:focus {
	background-color: var(--hl-color-accent-dark);
	border-color: var(--hl-color-accent-dark);
	color: var(--hl-color-white);
	transform: translateY(-1px);
}

.hl-btn--primary {
	background-color: var(--hl-color-primary);
	color: var(--hl-color-white);
	border-color: var(--hl-color-primary);
}

.hl-btn--primary:hover,
.hl-btn--primary:focus {
	background-color: var(--hl-color-primary-dark);
	border-color: var(--hl-color-primary-dark);
	color: var(--hl-color-white);
	transform: translateY(-1px);
}

.hl-btn--pill {
	border-radius: var(--hl-radius-pill);
}

.hl-btn--outline-white {
	background-color: transparent;
	color: var(--hl-color-white);
	border-color: var(--hl-color-primary-border);
}

.hl-btn--outline-white:hover,
.hl-btn--outline-white:focus {
	background-color: var(--hl-color-white);
	color: var(--hl-color-primary);
}

.hl-btn--full {
	width: 100%;
}

/* =========================================================================
   Top Bar & White Header Navigation
   ========================================================================= */
.hl-topbar {
	background-color: var(--hl-color-bg-topbar);
	border-bottom: 1px solid var(--hl-color-border);
	padding: var(--hl-space-2) 0;
	text-align: center;
	font-size: var(--hl-fs-xs);
	color: var(--hl-color-text-muted);
}

.site-header {
	background-color: var(--hl-color-white);
	border-bottom: 1px solid var(--hl-color-border);
	padding: var(--hl-space-4) 0;
	position: sticky;
	top: 0;
	z-index: var(--hl-z-header);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hl-space-6);
}

.site-title {
	margin: 0;
	font-size: var(--hl-fs-xl);
	font-weight: var(--hl-fw-regular);
}

.site-title a {
	color: var(--hl-color-primary);
}

.custom-logo {
	max-height: var(--hl-space-10);
	width: auto;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: var(--hl-space-6);
}

.main-navigation a {
	color: var(--hl-color-text-body);
	font-weight: var(--hl-fw-medium);
	font-size: var(--hl-fs-sm);
}

.main-navigation a:hover,
.main-navigation a:focus {
	color: var(--hl-color-accent);
}

.site-header-phone {
	color: var(--hl-color-text-primary);
	font-size: var(--hl-fs-sm);
	font-weight: var(--hl-fw-medium);
	white-space: nowrap;
}

.site-header-phone-icon,
.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	color: var(--hl-color-primary);
	cursor: pointer;
	padding: var(--hl-space-2);
	font-size: var(--hl-fs-lg);
}

.menu-toggle__close {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__open {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
	display: inline-block;
}

/* =========================================================================
   Main Content
   ========================================================================= */
.site-main {
	padding: var(--hl-space-12) 0;
	min-height: calc(100vh - 220px);
}

.template-full-width,
.canvas-main {
	padding: 0;
}

/* =========================================================================
   Deep Navy Footer
   ========================================================================= */
.site-footer {
	background-color: var(--hl-color-primary);
	color: var(--hl-color-text-on-dark-muted);
	padding: var(--hl-space-16) 0 var(--hl-space-8);
	font-size: var(--hl-fs-sm);
}

.site-footer-brand {
	font-family: var(--hl-font-heading);
	font-size: var(--hl-fs-xl);
	color: var(--hl-color-white);
	display: block;
	margin-bottom: var(--hl-space-3);
}

.site-footer-logo {
	max-height: var(--hl-space-10);
	width: auto;
	margin-bottom: var(--hl-space-4);
}

.site-footer-heading {
	font-family: var(--hl-font-body);
	font-size: var(--hl-fs-xs);
	font-weight: var(--hl-fw-semibold);
	text-transform: uppercase;
	letter-spacing: var(--hl-ls-eyebrow);
	color: var(--hl-color-white);
	margin-bottom: var(--hl-space-4);
}

.site-footer a {
	color: var(--hl-color-text-on-dark-muted);
}

.site-footer a:hover {
	color: var(--hl-color-white);
}

.footer-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--hl-space-2);
}

.site-footer-socials a {
	width: var(--hl-space-8);
	height: var(--hl-space-8);
	border-radius: var(--hl-radius-circle);
	border: 1px solid var(--hl-color-primary-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: var(--hl-fs-xs);
}

.site-footer-bottom {
	margin-top: var(--hl-space-10);
	padding-top: var(--hl-space-6);
	border-top: 1px solid var(--hl-color-primary-border);
	font-size: var(--hl-fs-xs);
}

.site-footer-group-badge {
	display: inline-block;
	background-color: var(--hl-color-accent);
	color: var(--hl-color-white);
	padding: var(--hl-space-2) var(--hl-space-4);
	border-radius: var(--hl-radius-sm);
	font-size: var(--hl-fs-xs);
	font-weight: var(--hl-fw-medium);
}

/* =========================================================================
   Responsive Mobile Navigation Drawer
   ========================================================================= */
@media (max-width: 991.98px) {
	.main-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: var(--hl-color-white);
		border-top: 1px solid var(--hl-color-border);
		padding: var(--hl-space-3) var(--hl-space-5) var(--hl-space-6);
		box-shadow: var(--hl-shadow-lg);
		z-index: var(--hl-z-header);
	}

	.main-navigation.is-active {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.main-navigation li {
		width: 100%;
		border-bottom: 1px solid var(--hl-color-border);
	}

	.main-navigation li:last-child {
		border-bottom: none;
	}

	.main-navigation a {
		display: block;
		width: 100%;
		padding: var(--hl-space-4) 0;
		font-size: var(--hl-fs-base);
		color: var(--hl-color-text-primary);
	}

	.site-mobile-cta {
		margin-top: var(--hl-space-5);
	}
}

