/**
 * BHB Account Tracker — public marketing / legal / quote pages
 * Navy #102a43 · teal accents · mobile-friendly
 */

/* ---- Guest header: hide empty nav / mobile toggle clutter ---- */
body.bhb-at-guest-header .main-navigation:not(:has(li)),
body.bhb-at-guest-header .main-navigation ul:empty,
body.bhb-at-guest-header .main-navigation .menu:empty,
body.bhb-at-guest-header #site-navigation:not(:has(li)),
body.bhb-at-guest-header .menu-toggle:not(:has(+ * li)),
body.bhb-at-guest-header button.menu-toggle,
body.bhb-at-guest-header .menu-toggle,
body.bhb-at-guest-header .mobile-menu-control-wrapper,
body.bhb-at-guest-header .gen-sidebar-nav {
	/* Keep logo; hide empty primary nav chrome for guests */
}

body.bhb-at-guest-header .main-navigation ul.menu:empty,
body.bhb-at-guest-header .main-navigation > div > ul:empty,
body.bhb-at-guest-header nav[aria-label] ul:empty {
	display: none !important;
}

body.bhb-at-guest-header .menu-toggle,
body.bhb-at-guest-header button.menu-toggle,
body.bhb-at-guest-header .mobile-menu-control-wrapper,
body.bhb-at-guest-header .gp-icon.icon-menu-bars,
body.bhb-at-guest-header .menu-bar-items {
	display: none !important;
}

body.bhb-at-guest-header .main-navigation {
	min-height: 0;
}

body.bhb-at-guest-header .main-navigation .main-nav ul {
	display: none !important;
}

/* ---- Marketing landing ---- */
.bhb-mkt {
	--bhb-navy: #102a43;
	--bhb-teal: #0d9488;
	--bhb-teal-dark: #0f766e;
	--bhb-teal-soft: #e6f7f5;
	--bhb-muted: #627d98;
	--bhb-text: #243b53;
	--bhb-card: #ffffff;
	--bhb-border: #d9e2ec;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--bhb-text);
	line-height: 1.55;
	margin: 0 calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	box-sizing: border-box;
}

.bhb-mkt *,
.bhb-mkt *::before,
.bhb-mkt *::after {
	box-sizing: border-box;
}

.bhb-mkt-inner {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.bhb-mkt-hero {
	background: var(--bhb-navy);
	color: #f0f4f8;
	padding: 3.5rem 0 3.75rem;
	text-align: center;
}

.bhb-mkt-hero-title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
	line-height: 1.2;
}

.bhb-mkt-hero-sub {
	margin: 0 auto 1.75rem;
	max-width: 36rem;
	font-size: 1.1rem;
	color: #bcccdc;
}

.bhb-mkt-hero-cta {
	margin: 0;
}

.bhb-mkt-btn {
	display: inline-block;
	padding: 0.85rem 1.75rem;
	border-radius: 8px;
	font-weight: 650;
	font-size: 1.05rem;
	text-decoration: none !important;
	border: 2px solid transparent;
	cursor: pointer;
	line-height: 1.2;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.bhb-mkt-btn:hover {
	transform: translateY(-1px);
}

.bhb-mkt-btn-primary {
	background: #fff;
	color: var(--bhb-navy) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.bhb-mkt-btn-primary:hover {
	background: #f0f4f8;
	color: var(--bhb-navy) !important;
}

.bhb-mkt-btn-teal {
	background: var(--bhb-teal);
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(13, 148, 136, 0.28);
}

.bhb-mkt-btn-teal:hover {
	background: var(--bhb-teal-dark);
	color: #fff !important;
}

button.bhb-mkt-btn {
	font: inherit;
}

.bhb-mkt-services {
	background: #f7fafc;
	padding: 3rem 0 3.25rem;
	text-align: center;
}

.bhb-mkt-intro {
	margin: 0 auto 0.5rem;
	max-width: 36rem;
	color: var(--bhb-muted);
	font-size: 1.05rem;
}

.bhb-mkt-section-title {
	margin: 0 0 1.75rem;
	font-size: 1.65rem;
	color: var(--bhb-navy);
	font-weight: 700;
}

.bhb-mkt-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	text-align: left;
}

.bhb-mkt-card {
	background: var(--bhb-card);
	border: 1px solid var(--bhb-border);
	border-radius: 12px;
	padding: 1.35rem 1.25rem 1.4rem;
	box-shadow: 0 4px 14px rgba(16, 42, 67, 0.05);
}

.bhb-mkt-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	color: var(--bhb-navy);
	font-weight: 700;
}

.bhb-mkt-card p {
	margin: 0;
	color: var(--bhb-muted);
	font-size: 0.98rem;
}

.bhb-mkt-quote-cta {
	background: var(--bhb-teal-soft);
	padding: 2.75rem 0;
	text-align: center;
	border-top: 1px solid #c6ebe6;
}

.bhb-mkt-quote-cta h2 {
	margin: 0 0 0.5rem;
	color: var(--bhb-navy);
	font-size: 1.5rem;
}

.bhb-mkt-quote-cta p {
	margin: 0 auto 1.25rem;
	max-width: 32rem;
	color: var(--bhb-muted);
}

.bhb-mkt-quote-cta p:last-child {
	margin-bottom: 0;
}

/* ---- Quote form ---- */
.bhb-mkt-quote-wrap {
	margin: 0;
	width: auto;
	max-width: none;
}

.bhb-mkt-form {
	max-width: 720px;
	margin: 1rem auto 2.5rem;
	padding: 1.5rem 1.25rem;
	background: #fff;
	border: 1px solid var(--bhb-border, #d9e2ec);
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(16, 42, 67, 0.06);
}

.bhb-mkt-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem 1rem;
}

.bhb-mkt-field {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.bhb-mkt-field-full {
	grid-column: 1 / -1;
}

.bhb-mkt-field label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--bhb-navy, #102a43);
}

.bhb-mkt-field .req {
	color: #c81e1e;
}

.bhb-mkt-field input,
.bhb-mkt-field select,
.bhb-mkt-field textarea {
	width: 100%;
	padding: 0.55rem 0.65rem;
	border: 1px solid #bcccdc;
	border-radius: 6px;
	font: inherit;
	color: var(--bhb-text, #243b53);
	background: #fff;
}

.bhb-mkt-field input:focus,
.bhb-mkt-field select:focus,
.bhb-mkt-field textarea:focus {
	outline: 2px solid var(--bhb-teal, #0d9488);
	outline-offset: 1px;
	border-color: var(--bhb-teal, #0d9488);
}

.bhb-mkt-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px !important;
	width: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.bhb-mkt-form-note {
	margin: 1rem 0 0.75rem;
	font-size: 0.85rem;
	color: var(--bhb-muted, #627d98);
}

.bhb-mkt-form-actions {
	margin: 0;
}

.bhb-mkt-notice {
	max-width: 720px;
	margin: 1rem auto;
	padding: 0.85rem 1rem;
	border-radius: 8px;
	font-weight: 560;
}

.bhb-mkt-notice-success {
	background: #e6f7f5;
	color: #0f766e;
	border: 1px solid #99e2d8;
}

.bhb-mkt-notice-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Legal pages: readable measure when marketing CSS loads */
.page-slug-privacy-policy .entry-content,
.page-slug-terms-of-use .entry-content,
.page-slug-hipaa-notice .entry-content,
.privacy-policy .entry-content {
	max-width: 46rem;
}

@media (max-width: 800px) {
	.bhb-mkt-cards {
		grid-template-columns: 1fr;
	}

	.bhb-mkt-form-grid {
		grid-template-columns: 1fr;
	}

	.bhb-mkt-hero {
		padding: 2.5rem 0 2.75rem;
	}
}
