/*
 * Shared header/footer chrome, matching www.imagicsoft.com's site-wide
 * header (src/components/SiteNav.astro) and footer (SiteFooter.astro),
 * minus the nav menu items (this subdomain has no site nav of its own).
 */

:root {
	--color-primary: #804DA0;
}

html {
	height: 100%;
}

body {
	font-family: 'Didact Gothic', tahoma, sans-serif;
	margin: 0;
	padding-top: 90px; /* clears the fixed 70px header, plus breathing room */
	box-sizing: border-box;
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

/* Header */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: #ffffff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.site-header-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 1rem;
	min-height: 70px;
	display: flex;
	align-items: center;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	text-decoration: none;
	color: #000000;
	font-family: 'Didact Gothic', tahoma, sans-serif;
	font-weight: 700;
	font-size: 1.5rem;
}

.site-brand img {
	display: block;
	width: 29px;
	height: 32px;
	object-fit: contain;
}

/* style2.css's #container has "position: relative; top: 90px" left over from
   the old fixed-position #navPage bar this page no longer has. body's
   padding-top above is this page's only header clearance now. */
#container {
	position: static;
	top: 0;
	flex: 1 0 auto;
	padding-bottom: 64px;
}

/* Footer */

.site-footer {
	flex-shrink: 0;
	padding: 64px 0 32px;
	background: #221c2d;
	color: #cbd5e1;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}
.footer-grid {
	display: grid;
	gap: 40px 32px;
	grid-template-columns: 1fr;
}
.footer-col {
	display: flex;
	flex-direction: column;
}
.footer-col h4 {
	margin: 0 0 16px;
	padding-bottom: 12px;
	font-size: 13px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
	font-weight: 700;
	position: relative;
}
.footer-col h4::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 15%;
	height: 2px;
	background: var(--color-primary);
}
.footer-col a {
	display: inline-block;
	padding: 5px 0;
	color: #94a3b8;
	font-family: 'Didact Gothic', tahoma, sans-serif;
	font-weight: 500;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.2s ease;
}
.footer-col a:hover {
	color: #fff;
	transform: translateX(4px);
}
.footer-about .brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-family: 'Didact Gothic', tahoma, sans-serif;
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 12px;
	text-decoration: none;
}
.footer-about .brand-mark {
	width: 28px;
	height: 28px;
	object-fit: contain;
}
.footer-about p {
	margin: 0;
	color: #94a3b8;
	font-size: 14px;
	line-height: 1.6;
}
.footer-bottom {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: #94a3b8;
	font-family: 'Didact Gothic', tahoma, sans-serif;
	font-size: 13px;
}
.footer-bottom a {
	color: #94a3b8;
	font-family: 'Didact Gothic', tahoma, sans-serif;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	transition: color 0.15s;
}
.footer-bottom a:hover {
	color: #fff;
}

@media (min-width: 640px) {
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 768px) {
	.footer-bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* Download heading + product icon */

.download-heading {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.35rem;
}
.download-heading .app-icon {
	display: block;
	max-height: 48px;
	max-width: 48px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Email/Pin lookup form */

/* Product logo hangs in the left margin beside the form, so the form keeps its
   position; its width is a share of the form's width. Narrow screens have no
   margin to spare, so the logo sits above the form there. */
.update-lookup {
	position: relative;
	max-width: 360px;
}
.lookup-icon {
	display: block;
	width: 20%;
	min-width: 48px;
	max-width: 96px;
	height: auto;
	object-fit: contain;
	margin-bottom: 0.75rem;
}
@media only screen and (min-width: 769px) {
	.lookup-icon {
		position: absolute;
		right: 100%;
		top: 1.4rem;
		margin: 0 1.25rem 0 0;
	}
}
.lookup-icon[hidden] {
	display: none;
}
.update-form {
	max-width: 360px;
}
.update-form-row {
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.update-form-row label {
	font-family: 'Didact Gothic', tahoma, sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #221c2d;
}
.update-form-row input[type="text"],
.update-form-row select,
.update-form-row textarea {
	font-family: 'Didact Gothic', tahoma, sans-serif;
	font-size: 15px;
	padding: 0.55rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.update-form-row textarea {
	resize: vertical;
}
.update-form-row input[type="text"]:focus,
.update-form-row select:focus,
.update-form-row textarea:focus {
	border-color: var(--color-primary);
}
.update-form-fields[hidden] {
	display: none;
}
.update-form-submit {
	margin-top: 0.5rem;
}
.update-form-submit input[type="submit"] {
	font-family: 'Didact Gothic', tahoma, sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: #fff;
	background: var(--color-primary);
	border: none;
	border-radius: 4px;
	padding: 0.6rem 1.75rem;
	cursor: pointer;
	transition: background 0.15s;
}
.update-form-submit input[type="submit"]:hover {
	background: #6B3F86;
}
