/* Shared look for the public site (index.html, services.html, contact.php, login.php). */

:root {
	--navy: #0b2a5b;
	--navy-dark: #081f44;
	--page: #f5f6f8;
	--card: #fff;
	--line: #d9dde5;
	--text: #222;
	--muted: #5b6270;
	--red: #c00;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background-color: var(--page);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
	color: var(--text);
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex: 1;
}

a {
	color: var(--navy);
}

.container {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header: white, so the logo's white background blends in. */
.site-header {
	background-color: #fff;
	border-bottom: 1px solid var(--line);
}
.site-header .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 10px;
	padding-bottom: 10px;
}
.site-header img {
	display: block;
	height: 64px;
	width: auto;
}
.site-header nav a {
	margin-left: 22px;
	color: var(--navy);
	text-decoration: none;
	font-weight: 600;
	padding-bottom: 3px;
	border-bottom: 2px solid transparent;
}
.site-header nav a:first-child {
	margin-left: 0;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
	border-bottom-color: var(--navy);
}

/* Home page banner. */
.banner {
	background-color: var(--navy);
	color: #fff;
	text-align: center;
	padding: 56px 0;
}
.banner h1 {
	margin: 0;
	font-size: 2em;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.25;
}

/* Home page tile buttons. */
.tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
	justify-content: center;
	gap: 20px;
	padding-top: 48px;
	padding-bottom: 64px;
}
.tile {
	display: block;
	padding: 28px 24px;
	background-color: var(--card);
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--text);
	text-decoration: none;
	transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.tile:hover,
.tile:focus-visible {
	transform: translateY(-2px);
	border-color: var(--navy);
	box-shadow: 0 6px 16px rgba(11, 42, 91, 0.12);
	outline: none;
}
.tile svg {
	width: 36px;
	height: 36px;
	color: var(--navy);
}
.tile h2 {
	margin: 12px 0 4px;
	color: var(--navy);
	font-size: 1.2em;
}
.tile p {
	margin: 0;
	color: var(--muted);
	font-size: 0.95em;
}

/* Inner pages: title strip, then content in a card. */
.page-title {
	background-color: #e8ebf1;
	border-bottom: 1px solid var(--line);
	padding: 28px 0;
}
.page-title h1 {
	margin: 0;
	color: var(--navy);
	font-size: 1.6em;
	font-weight: 600;
}
.card {
	max-width: 720px;
	margin: 36px auto 56px;
	padding: 32px;
	background-color: var(--card);
	border: 1px solid var(--line);
	border-radius: 8px;
}
.card.narrow {
	max-width: 420px;
}
.card h2 {
	margin: 0 0 6px;
	color: var(--navy);
	font-size: 1.15em;
}
.card p {
	margin: 0 0 24px;
}
.card > :last-child {
	margin-bottom: 0;
}

/* Forms. */
label {
	display: block;
	margin: 0 0 4px;
	font-size: 0.95em;
}
input[type=text], input[type=password], textarea {
	width: 100%;
	margin: 0 0 18px;
	padding: 9px 11px;
	border: 1px solid #c4c9d6;
	border-radius: 4px;
	font: inherit;
	background-color: #fff;
}
input:focus, textarea:focus {
	border-color: var(--navy);
	outline: 2px solid rgba(11, 42, 91, 0.15);
}
textarea {
	height: 160px;
	resize: vertical;
}
button {
	padding: 10px 28px;
	border: 0;
	border-radius: 4px;
	background-color: var(--navy);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
button:hover {
	background-color: var(--navy-dark);
}
button:disabled {
	background-color: #b3b3b3;
	cursor: not-allowed;
}
.req {
	color: var(--red);
}
.legend {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 0.85em;
}
.hint {
	margin: -12px 0 18px;
	color: var(--red);
	font-size: 0.85em;
}
.hp {
	position: absolute;
	left: -10000px;
}
.notice {
	margin: 0 0 24px;
	padding: 14px 16px;
	background-color: #eef0f5;
	border: 1px solid #d7dbe6;
	border-radius: 4px;
	color: #444;
	font-size: 0.95em;
}
.notice.error {
	background-color: #fbeeee;
	border-color: #e6caca;
	color: #722;
}

/* Footer. */
.site-footer {
	background-color: #1c2433;
	color: #c9ceda;
	font-size: 0.9em;
	padding: 20px 0;
}
.site-footer .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 40px;
}
.site-footer p {
	margin: 0;
}

@media (max-width: 600px) {
	.site-header .container {
		justify-content: center;
	}
	.site-header img {
		height: 52px;
	}
	.banner {
		padding: 40px 0;
	}
	.banner h1 {
		font-size: 1.5em;
	}
	.card {
		margin: 20px auto 36px;
		padding: 22px 18px;
	}
}
