/* Homes By Design — client-facing web pages, design C "Warm premium" (web_include_css only, never Desk).
   Warm paper neutrals, the houses as heroes, a didone display face (Bodoni Moda, SIL OFL) that echoes the
   HBD letters, gold as the accent, navy for actions. Pages: login, /my-house, /financing, /inquiry, /lender,
   /my-jobs, /supplier-orders, /rtm-link and the standard portal lists. AA contrast: gold is used as a fill
   behind navy text or as hairlines; gold *text* uses --hbdc-gold-ink. */

@font-face {
	font-family: "HBD Display";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/assets/rtm_builder/fonts/BodoniModa-SemiBold.ttf") format("truetype");
}

:root {
	--hbdc-font-display: "HBD Display", "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
	--hbdc-font-body: "InterVariable", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--hbdc-bg: #f5efe6;
	--hbdc-surface: #fffcf7;
	--hbdc-surface-2: #f4ede2;
	--hbdc-text: #2b2219;
	--hbdc-text-2: #6a5b4c;
	--hbdc-line: #dccfbc;
	--hbdc-hair: #ece2d3;
	--hbdc-navy: #0d2237;
	--hbdc-navy-hover: #1b3756;
	--hbdc-gold: #ba8f4a;
	--hbdc-gold-ink: #84602a;
	--hbdc-gold-bg: #f2e6d0;
	--hbdc-success: #2f6b3a;
	--hbdc-success-bg: #e4efdf;
	--hbdc-warn: #8f4f12;
	--hbdc-warn-bg: #f8e7d2;
	--hbdc-r-sm: 8px;
	--hbdc-r-md: 12px;
	--hbdc-r-lg: 18px;
	--hbdc-sh-1: 0 1px 2px rgba(60, 40, 20, 0.05), 0 10px 28px rgba(60, 40, 20, 0.06);
	--hbdc-sh-2: 0 2px 6px rgba(60, 40, 20, 0.08), 0 22px 48px rgba(60, 40, 20, 0.12);
	--hbdc-focus: 0 0 0 2px var(--hbdc-surface), 0 0 0 4px var(--hbdc-navy);
}

/* ---------- Page frame ---------- */
body {
	background: var(--hbdc-bg);
	color: var(--hbdc-text);
}
.navbar,
.web-header .navbar {
	background: rgba(255, 252, 247, 0.92) !important;
	border-bottom: 1px solid #e6dccd;
	box-shadow: none;
}
@supports (backdrop-filter: blur(16px)) {
	.navbar {
		backdrop-filter: blur(16px);
	}
}
.navbar-light .navbar-brand img,
.web-header .navbar-brand img {
	max-height: 40px;
	width: auto;
	object-fit: contain;
}
.web-footer,
.page-footer {
	border-top: 1px solid var(--hbdc-line);
	background: transparent;
	color: var(--hbdc-text-2);
}
.web-footer a,
.page-footer a {
	color: var(--hbdc-text-2);
}
::selection {
	background: rgba(186, 143, 74, 0.3);
}
/* Client-facing brand is HBD: no "Powered by" line on portal pages (Desk is untouched) */
.footer-powered,
.web-footer .footer-powered {
	display: none !important;
}
/* Tap targets >= 44px on phones */
.navbar .navbar-toggler {
	min-width: 44px;
	min-height: 44px;
}
body[data-path="login"] .forgot-password-message,
body[data-path="login"] a[href*="forgot"],
body[data-path="login"] .page-card-body a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.es-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: none;
	box-shadow: var(--hbdc-focus) !important;
}

/* ---------- Login (staff and clients share it; the client face of the brand) ---------- */
body[data-path="login"] main.container {
	min-height: calc(100vh - 120px);
	display: flex;
	align-items: center;
	justify-content: center;
}
body[data-path="login"] .page_content {
	width: 100%;
}
body[data-path="login"] .login-content.page-card {
	background: var(--hbdc-surface);
	border: 1px solid var(--hbdc-hair);
	border-top: 3px solid var(--hbdc-gold);
	border-radius: var(--hbdc-r-lg);
	box-shadow: var(--hbdc-sh-2);
	padding: 36px 32px 32px;
	max-width: 420px;
	min-height: 0 !important;
	height: auto !important;
	margin: 32px auto;
}
body[data-path="login"] .page-card-head .app-logo {
	max-height: 72px;
	width: auto;
	object-fit: contain;
}
body[data-path="login"] .page-card-head h4 {
	font-family: var(--hbdc-font-display);
	font-weight: 600;
	font-size: 32px;
	letter-spacing: -0.01em;
	color: var(--hbdc-navy) !important;
}
body[data-path="login"] .page-card-subtitle {
	color: var(--hbdc-text-2) !important;
}
body[data-path="login"] .form-group label,
body[data-path="login"] .form-label {
	color: var(--hbdc-text) !important;
	font-weight: 500;
}
body[data-path="login"] input.form-control {
	background: #ffffff;
	border: 1px solid var(--hbdc-line);
	border-radius: var(--hbdc-r-sm);
	min-height: 44px;
	font-size: 16px; /* no iOS zoom on focus */
}
body[data-path="login"] .es-button {
	min-height: 44px;
	border-radius: var(--hbdc-r-md);
	font-weight: 600;
}
body[data-path="login"] .page-card-actions .es-button:not(.btn-login-option),
body[data-path="login"] .btn-primary {
	--bt-solid-bg: var(--hbdc-navy);
	--bt-solid-bg-hover: var(--hbdc-navy-hover);
	--bt-solid-fg: #ffffff;
}
body[data-path="login"] .btn-login-option {
	background: var(--hbdc-gold-bg);
	color: var(--hbdc-navy);
}
body[data-path="login"] a.forgot-password-message,
body[data-path="login"] .forgot-password-message a {
	color: var(--hbdc-gold-ink);
}
body[data-path="login"] .page-footer {
	border-top: 0;
}

/* ---------- Portal pages built by rtm_builder (.mh = /my-house, .hbdp = shared portal kit) ---------- */
.portal-container .btn-primary,
.web-form .btn-primary {
	background-color: var(--hbdc-navy);
	border-color: var(--hbdc-navy);
}
.portal-container a {
	color: var(--hbdc-navy);
}

/* Small "link cannot be used" card (/rtm-link) */
.hbdc-notice {
	max-width: 460px;
	margin: 48px auto;
	padding: 32px 28px;
	text-align: center;
	background: var(--hbdc-surface);
	border: 1px solid var(--hbdc-hair);
	border-top: 3px solid var(--hbdc-gold);
	border-radius: var(--hbdc-r-lg);
	box-shadow: var(--hbdc-sh-1);
	font-family: var(--hbdc-font-body);
}
.hbdc-notice .hbdc-eyebrow {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hbdc-gold-ink);
	font-weight: 600;
}
.hbdc-notice h1 {
	font-family: var(--hbdc-font-display);
	font-weight: 600;
	font-size: 30px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--hbdc-navy);
	margin: 12px 0 10px;
}
.hbdc-notice p {
	color: var(--hbdc-text-2);
	margin: 0 0 20px;
}
.hbdc-notice .hbdc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: var(--hbdc-r-md);
	background: var(--hbdc-navy);
	color: #fffcf7;
	font-weight: 600;
	text-decoration: none;
}
.hbdc-notice .hbdc-btn:hover {
	background: var(--hbdc-navy-hover);
	color: #fffcf7;
	text-decoration: none;
}

@media (max-width: 480px) {
	body[data-path="login"] .login-content.page-card {
		padding: 28px 20px 24px;
		margin: 16px auto;
	}
	body[data-path="login"] .page-card-head h4 {
		font-size: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
