/* Public Title Services: shared styles for every page. */

:root {
	--blue: #001a9f;
	--blue-dark: #00137a;
	--blue-tint: #eef1fb;
	--text: #333;
	--muted: #666;
	--rule: #dde1ec;
	--bg: #fff;
	--wrap: 72rem;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	color-scheme: light;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1.125rem/1.65 "Lato", Arial, Helvetica, sans-serif;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
main { flex: 1; }

img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #5b7cff; outline-offset: 2px; }

h1, h2, h3 {
	font-family: "Montserrat", Arial, Helvetica, sans-serif;
	color: #111;
	line-height: 1.25;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip {
	position: absolute; left: -999px; top: 0;
	background: var(--blue); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* Header and menu */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	box-shadow: 0 1px 6px rgb(0 0 0 / 0.12);
}
.site-header .wrap {
	max-width: 82rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 5rem;
}
.brand { display: block; flex: none; line-height: 0; margin-right: auto; }
.brand img { width: 159px; height: 59px; }

.menu-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 0.6rem;
	cursor: pointer;
	color: #111;
}
.menu-toggle svg { display: block; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; }
.nav a, .nav button {
	display: block;
	font: 700 0.8125rem/1 "Montserrat", Arial, Helvetica, sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #111;
	text-decoration: none;
	padding: 1.1rem 0.85rem;
	background: none;
	border: 0;
	cursor: pointer;
	white-space: nowrap;
}
.nav a:hover, .nav button:hover { color: var(--blue); }
.nav a[aria-current="page"], .nav .has-current > button {
	background: var(--blue);
	color: #fff;
}
.nav button::after {
	content: "";
	display: inline-block;
	margin-left: 0.4em;
	vertical-align: 0.15em;
	border: 0.3em solid transparent;
	border-top-color: currentColor;
	border-bottom: 0;
}
.dropdown { position: relative; }
.dropdown ul {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	min-width: 17rem;
	background: #fff;
	box-shadow: 0 6px 18px rgb(0 0 0 / 0.15);
	border-top: 3px solid var(--blue);
}
.dropdown.open ul { display: block; }
@media (hover: hover) and (min-width: 76.01rem) {
	.dropdown:hover ul { display: block; }
}
.dropdown ul a {
	text-transform: none;
	letter-spacing: 0.02em;
	font-size: 0.95rem;
	padding: 0.85rem 1.1rem;
}
.dropdown ul a:hover { background: var(--blue-tint); }
.dropdown ul a[aria-current="page"] { background: var(--blue); color: #fff; }

/* Language switch: at the right end of the menu; beside the menu button on phones. */
.lang {
	font: 700 0.8rem/1 "Montserrat", Arial, Helvetica, sans-serif;
	letter-spacing: 0.08em;
	color: var(--blue);
	text-decoration: none;
	border: 2px solid var(--blue);
	border-radius: 3px;
	padding: 0.5rem 0.65rem;
	margin-left: 0.5rem;
	white-space: nowrap;
}
.lang:hover { background: var(--blue); color: #fff; }

@media (max-width: 76rem) {
	.menu-toggle { display: block; }
	.nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: #fff;
		box-shadow: 0 6px 12px rgb(0 0 0 / 0.12);
		max-height: calc(100vh - 5rem);
		overflow-y: auto;
	}
	.nav.open { display: block; }
	.nav > ul { flex-direction: column; align-items: stretch; padding-bottom: 0.5rem; }
	.nav a, .nav button { padding: 1rem var(--gutter); width: 100%; text-align: left; }
	.dropdown ul { position: static; box-shadow: none; border: 0; min-width: 0; }
	.dropdown ul a { padding-left: calc(var(--gutter) + 1.25rem); }
}

/* Home page banner and sections */

.hero { line-height: 0; background: #f4f4f4; }
/* Full photo on most screens; on wide, short ones trim the top and bottom so the welcome shows. */
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; max-height: calc(100vh - 9rem); min-height: 15rem; object-fit: cover; object-position: 50% 45%; }

.welcome { padding-block: 3rem; max-width: 56rem; }
.welcome h1, .section-title {
	text-align: center;
	font-size: 1.25rem;
	font-weight: 400;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	margin: 0 0 1.5rem;
}
.welcome p { margin: 0; color: #555; }

.trusted {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.25rem;
	padding-block: 1.5rem 3rem;
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 2rem);
	font-weight: 500;
	text-align: center;
}
.trusted img { width: 137px; height: 51px; }

/* Inner pages */

.page-head {
	background: var(--blue-tint);
	border-bottom: 1px solid var(--rule);
	padding-block: 2.25rem;
	text-align: center;
}
.page-head h1 {
	margin: 0;
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--blue);
}
.page-head h1::after {
	content: "";
	display: block;
	width: 4rem;
	height: 3px;
	margin: 0.9rem auto 0;
	background: var(--blue);
}

.page-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 20rem;
	gap: 2.5rem 3.5rem;
	padding-block: 2.5rem 3.5rem;
}
@media (max-width: 52rem) {
	.page-body { grid-template-columns: minmax(0, 1fr); }
}
.page-body h2 { font-size: 1.5rem; margin: 0 0 1rem; color: var(--blue); }
.page-body p { margin: 0 0 1.25rem; }

.services {
	list-style: none;
	padding: 0;
	margin: 0 0 1.25rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 0.6rem 2rem;
}
.services li { position: relative; padding-left: 1.75rem; }
.services li::before {
	content: "";
	position: absolute;
	left: 0.2rem; top: 0.45em;
	width: 0.5rem; height: 0.85rem;
	border: solid var(--blue);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.faq h3 {
	font-size: 1rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--blue);
	margin: 2rem 0 0.6rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--rule);
}
.faq ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.faq li { margin-bottom: 0.75rem; }

.lead-out { border-top: 1px solid var(--rule); padding-top: 1.5rem; margin-top: 2rem; }

.contact-card {
	align-self: start;
	background: var(--blue-tint);
	border-top: 4px solid var(--blue);
	padding: 1.5rem;
}
.contact-card h2 {
	font-size: 1.1rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #111;
	margin: 0 0 1rem;
}
.contact-card p { margin: 0 0 0.6rem; }
.contact-card .email { font-size: 0.95rem; overflow-wrap: anywhere; }

.button {
	display: inline-block;
	background: var(--blue);
	color: #fff;
	text-decoration: none;
	font: 700 0.85rem/1 "Montserrat", Arial, Helvetica, sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.9rem 1.25rem;
	border-radius: 3px;
	border: 0;
	cursor: pointer;
}
.button:hover { background: var(--blue-dark); color: #fff; }

/* Office: map beside the blue address panel, stacked on narrow screens */

.office {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-top: 1rem;
}
@media (max-width: 48rem) { .office { grid-template-columns: 1fr; } }
.office iframe { display: block; width: 100%; height: 100%; min-height: 18rem; border: 0; }
.office-info {
	background: var(--blue);
	color: #fff;
	padding: 2.5rem var(--gutter);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 0.75rem;
}
.office-info h2 { color: #fff; margin: 0 0 0.5rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.office-info p { margin: 0; font-size: 1.05rem; }
.office-info a { color: #fff; }
.office-info a:hover { color: #d6ddff; }
.office--large iframe { min-height: 28rem; }

.icon {
	display: inline-block;
	width: 1.1em;
	height: 1.1em;
	vertical-align: -0.2em;
	margin-right: 0.45em;
	fill: currentColor;
}

/* Wire fraud notice */

.wire-alert {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	background: #fff8e1;
	border-left: 5px solid #e0a800;
	padding: 1.1rem 1.25rem;
	margin: 0 0 1.75rem;
}
.wire-alert svg { flex: none; width: 2rem; height: 2rem; fill: #9a6b00; margin-top: 0.15rem; }
.wire-alert h2, .wire-alert h3 {
	font-size: 1rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #6d4c00;
	margin: 0 0 0.35rem;
}
.wire-alert p { margin: 0 0 0.5rem; }
.wire-alert p:last-child { margin-bottom: 0; }
.home-alert { max-width: 56rem; margin: 0 auto 1rem; }
.contact-alert { padding-block: 2rem 0; }

/* Checklists (Preparing for Closing, After Closing) */

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li {
	position: relative;
	padding: 0.6rem 0 0.6rem 2.25rem;
	border-bottom: 1px solid var(--rule);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.8rem;
	width: 1.25rem; height: 1.25rem;
	border: 2px solid var(--blue);
	border-radius: 3px;
}
.checklist strong { color: #111; }
.page-body h3 { font-size: 1.15rem; color: #111; margin: 2rem 0 0.5rem; }
.page-body .wire-alert h3 { font-size: 1rem; color: #6d4c00; margin: 0 0 0.35rem; }
.tip { background: var(--blue-tint); padding: 1rem 1.25rem; margin: 0 0 1.5rem; border-left: 4px solid var(--blue); }
.tip p:last-child { margin-bottom: 0; }
.fine { font-size: 0.9rem; color: var(--muted); }

/* Footer */

.site-footer {
	background: var(--blue);
	color: #f5f5f5;
	text-align: center;
	padding: 1rem var(--gutter);
	font-size: 0.95rem;
}
.site-footer p { margin: 0.25rem 0; }
.site-footer .wire-line { font-size: 0.88rem; max-width: 46rem; margin: 0.25rem auto 0.6rem; color: #dfe4ff; }
.site-footer .wire-line a { color: #fff; }
.to-top { color: #f5f5f5; display: inline-block; padding: 0.25rem 0.75rem; }
.to-top:hover { color: #c7cff5; }
.to-top svg { display: block; width: 1.4rem; height: 1.4rem; fill: currentColor; }

.print-only { display: none; }

@media print {
	@page { margin: 0.5in; }
	body { font-size: 10.5pt; line-height: 1.38; color: #000; }
	html[lang="es"] body { font-size: 10pt; }  /* Spanish runs longer; keeps the checklist on one page */
	.site-header, .site-footer, .office, .skip, .contact-card, .no-print { display: none !important; }
	body:has(.print-head) .page-head { display: none; }
	.page-head { background: none; border: 0; padding: 0 0 0.75rem; }
	.print-only { display: block; }
	.wrap { padding: 0; max-width: none; }
	.page-body { display: block; padding: 0; }
	a { color: #000; text-decoration: none; }

	/* Preparing for Closing printout: letterhead, fill-in lines, tick boxes. */
	.print-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		border-bottom: 3px solid var(--blue);
		padding-bottom: 0.4rem;
		margin-bottom: 0.9rem;
	}
	.print-head p { margin: 0; text-align: right; font-size: 9.5pt; color: #333; }
	.page-body h2 { font-size: 16pt; margin: 0 0 0.4rem; }
	.page-body h3 { font-size: 12pt; margin: 0.8rem 0 0.2rem; break-after: avoid; }
	.page-body p { margin-bottom: 0.6rem; }
	.fill-in { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin: 0.6rem 0 0.9rem; }
	.fill-in span { flex: 1 1 12rem; border-bottom: 1px solid #000; padding-bottom: 0.15rem; }
	.fill-in .wide { flex-basis: 100%; }
	.checklist { margin-bottom: 0.6rem; }
	.checklist li { padding: 0.25rem 0 0.25rem 1.9rem; break-inside: avoid; border-color: #bbb; }
	.checklist li::before { top: 0.35rem; border-color: #000; width: 1.05rem; height: 1.05rem; }
	.wire-alert, .tip { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; padding: 0.5rem 0.8rem; margin-bottom: 0.8rem; }
	.wire-alert p { margin-bottom: 0.3rem; }
	.wire-alert svg { width: 1.5rem; height: 1.5rem; }
	.lead-out { border: 0; }
}
