/* Washington Title & Guaranty Company — site styles */

:root {
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", P052, "Book Antiqua", Georgia, serif;
	--sans: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

	--page-bg: #d7d7d8;
	--band-bg: #b7b89c;
	--band-field: #c9cab5;
	--band-field-hover: #dadbc8;
	--band-field-focus: #f1f2e1;
	--text: #373737;
	--band-text: #3f3f33;
	--heading: #4a4c2e;
	--link: #4b5020;
	--link-hover: #2a2d10;
	--tab-border: #c3c5b1;
	--dark: #373737;
	--accent: #73783d;
	--error: #8a2f12;
	--focus: #1d1f0a;

	--width: min(928px, 100% - 32px);
}

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

html {
	background: var(--page-bg) url("/images/bg-vignette_top.jpg") no-repeat center top;
	background-image: image-set(url("/images/bg-vignette_top.webp") type("image/webp"), url("/images/bg-vignette_top.jpg") type("image/jpeg"));
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: url("/images/bg-vignette_bottom.jpg") no-repeat center bottom;
	background-image: image-set(url("/images/bg-vignette_bottom.webp") type("image/webp"), url("/images/bg-vignette_bottom.jpg") type("image/jpeg"));
	font: 15px/1.5 var(--sans);
	color: var(--text);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
	margin: 0 0 .5em;
	font-family: var(--serif);
	line-height: 1.1;
}

h1 {
	margin: .1em 0 .3em;
	font-size: clamp(2.75rem, 7vw, 4.5rem);
	font-style: italic;
	font-weight: normal;
	line-height: 1;
	letter-spacing: -.03em;
	color: var(--heading);
}

h2 { font-size: 1.45rem; }

p, ul, address { margin: 0 0 1em; }
ul { padding-left: 20px; }
address { font-style: normal; }

a {
	color: var(--link);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color 180ms ease-out;
}
a:hover { color: var(--link-hover); }

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

::selection { color: #fff; background: rgb(82 83 70 / .85); }

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 10;
	padding: 10px 16px;
	background: var(--dark);
	color: #fff;
	font-weight: 600;
}
.skip-link:focus { top: 16px; color: #fff; }

.inner {
	width: var(--width);
	margin-inline: auto;
}

/* ---------- Header + nav ---------- */
.site-header .inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
}

.brand { padding-bottom: 39px; }
.logo { display: block; line-height: 0; }
.logo-tagline {
	margin: 4px 0 0;
	font-size: 11px;
	line-height: 1.2;
	color: var(--text);
}

.site-nav ul {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav li { padding: 0 0 47px 17px; }
.site-nav a {
	display: block;
	padding: 150px 13px 25px;
	border: 3px solid transparent;
	border-top: 0;
	font: 20px/1 var(--serif);
	color: #010005;
	text-decoration: none;
	transition: background-color 180ms ease-out;
}
.site-nav a:hover { background-color: #dfdfdf; color: #010005; }
.site-nav a[aria-current="page"] {
	border-color: var(--tab-border);
	background: #3a3a3a url("/images/bg-mesh.jpg") repeat;
	color: #fff;
	box-shadow: 0 10px 8px -6px rgb(0 0 0 / .35);
}

/* ---------- Main band ---------- */
main {
	display: block;
	min-height: 200px;
	background-color: var(--band-bg);
	color: var(--band-text);
}
main:focus { outline: none; }
main > .outer {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 0;
}

.section-title,
.lede {
	font: bold 18px/1.2 var(--sans);
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--heading);
}

.content { overflow: auto; }
.limit_fw { max-width: 770px; }
.prose h2 { margin-top: 1.4em; }
.prose .meta { font-style: italic; }

.with-sidebar {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}
.with-sidebar .sidebar { flex: 0 0 auto; }

.photo {
	display: block;
	border: 5px solid #fff;
	box-shadow: 0 1px 5px rgb(0 0 0 / .3);
}

.spaceout {
	display: inline-block;
	margin-left: .13em;
	letter-spacing: .08em;
}
.double_size_type { font-size: 2em; font-family: var(--serif); line-height: 1.2; }

/* Buttons */
button,
.button {
	display: inline-block;
	padding: 13px 16px 10px;
	border: 3px solid var(--tab-border);
	background: #3a3a3a url("/images/bg-mesh.jpg") repeat;
	box-shadow: 0 1px 2px rgb(0 0 0 / .5);
	font: 20px/1 var(--serif);
	color: #fff;
	text-decoration: none;
	text-shadow: 0 1px 1px rgb(0 0 0 / .5);
	cursor: pointer;
	transition: box-shadow .2s ease, transform .2s ease;
}
button:hover,
.button:hover {
	color: #fff;
	box-shadow: 0 1px 2px rgb(0 0 0 / .5), 0 0 6px 3px rgb(122 122 122 / .5), inset 0 0 10px 30px rgb(255 255 255 / .12);
}
button:active,
.button:active {
	transform: translateY(2px);
	box-shadow: 0 0 1px rgb(0 0 0 / .5), inset 0 0 10px 30px rgb(0 0 0 / .4);
}
button:disabled { opacity: .7; cursor: progress; }
.file-type { font-size: .75em; }

/* ---------- Home ---------- */
.home_page main { overflow: hidden; }
.home_page main > .outer {
	background: url("/images/bg-home.jpg") no-repeat 166.3% top;
	background-image: image-set(url("/images/bg-home.webp") type("image/webp"), url("/images/bg-home.jpg") type("image/jpeg"));
}
.home_page main .inner { min-height: 471px; }
.home_page main > .outer { padding-block: 30px; }
.home_page h1 { margin-bottom: .15em; }
.home-panel {
	max-width: 540px;
	font-size: 14px;
	padding: 0 0 5px 4px;
	background-color: rgb(183 184 156 / .8);
}

.logo_listing { margin: 0; padding: 0; list-style: none; }
.home-panel .lede { font-size: 17px; }
.logo_listing .media {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 2px;
}
.logo_listing .img {
	display: flex;
	flex: 0 0 80px;
	height: 60px;
	align-items: center;
	justify-content: center;
}
.logo_listing img { max-width: 55px; max-height: 60px; width: auto; }
.logo_listing li:last-child img { max-width: 80px; }

/* ---------- Contact form ---------- */
.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 285px));
	gap: 20px 23px;
	margin-bottom: 20px;
}
.field-wide { grid-column: 1 / -1; }
.field label {
	display: block;
	padding: 2px 0 4px;
	font: 16px/1 var(--serif);
	color: #2d2d2d;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
	width: 100%;
	padding: 10px;
	border: 0;
	border-radius: 0;
	background-color: var(--band-field);
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12);
	font: 18px/1.3 var(--sans);
	color: #2d2d2d;
	transition: background-color 120ms ease-out, box-shadow 120ms ease-out;
}
input:hover,
textarea:hover { background-color: var(--band-field-hover); }
input:focus,
textarea:focus {
	background-color: var(--band-field-focus);
	box-shadow: inset 0 2px 5px rgb(0 0 0 / .15), 0 0 7px 4px rgb(122 122 122 / .5);
}
textarea { resize: vertical; min-height: 7em; }
[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--error); }

.field-error {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--error);
}

.req_symbol {
	margin-right: 3px;
	font-weight: bold;
	color: var(--error);
}

.page_error_message {
	margin: 20px 0;
	padding: 15px 15px 5px;
	border: 4px solid #c17856;
	background-color: #5f6150;
	font-size: 16px;
	color: #fff;
}
.page_error_message h2 {
	margin-bottom: 8px;
	font: bold 18px/1.2 var(--sans);
}
.page_error_message a { color: #fff; }
.page_error_message:focus { outline: 3px solid var(--focus); }

.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.recaptcha-notice { font-size: 12px; }
/* The v3 badge may be hidden because the notice above discloses reCAPTCHA. */
.grecaptcha-badge { visibility: hidden; }

/* ---------- Footer ---------- */
.site-footer {
	padding-top: 36px;
	font-size: 13px;
}
.site-footer .buckets {
	display: grid;
	grid-template-columns: 290px 1fr auto;
	gap: 12px;
}
.site-footer h2 { margin-bottom: 5px; }
.site-footer p,
.site-footer address { margin: 0 0 .8em; }
.site-footer .connect { text-align: right; }
.site-footer .tel {
	display: inline-block;
	font: 32px/1.1 var(--serif);
	color: var(--text);
	text-decoration: none;
}
.badges {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
	margin: 15px 0 0;
	padding: 0;
	list-style: none;
}
.badges img { display: block; height: 55px; width: auto; }

.site-footer .ft {
	margin-top: 36px;
	padding: 10px 0;
	border-top: 3px solid var(--accent);
	background-color: var(--dark);
	font-size: 11px;
	color: #fff;
	text-align: right;
}
.site-footer .ft a { color: #d4d6b8; }
.site-footer .ft a:hover { color: #fff; }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
	.site-header .inner {
		flex-direction: column;
		align-items: center;
		gap: 16px;
		padding-top: 24px;
		text-align: center;
	}
	.brand { padding-bottom: 0; }
	.site-nav ul { flex-wrap: wrap; justify-content: center; }
	.site-nav li { padding: 0 0 16px; }
	.site-nav a { padding: 8px 5px; border-top: 3px solid transparent; font-size: 17px; }

	.home_page main > .outer { background-position: 80% top; background-size: cover; }
	.home_page main .inner { min-height: 0; }
	.home-panel { padding: 12px; }

	.with-sidebar { flex-direction: column; }

	body { background: none; }
	.site-footer { background-color: #e4e4e5; }
	.site-footer .buckets { grid-template-columns: 1fr; gap: 20px; }
	.site-footer .connect { text-align: left; }
	.badges { justify-content: flex-start; flex-wrap: wrap; }
	.site-footer .ft { text-align: left; }
}

@media (max-width: 560px) {
	.form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}

/* ---------- Print ---------- */
@media print {
	* { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
	.site-nav, .skip-link, .button, button, .badges { display: none !important; }
	.site-header .inner { display: block; }
	a[href^="http"]::after { content: " (" attr(href) ")"; }
}
