/*
Theme Name: Axis Orthotech Child
Theme URI: https://axisorthotech.com/
Description: Child theme for Axis Orthotech. Brand colors from the official logo.
Author: Axis Orthotech
Template: axisorthotech
Version: 1.1.8
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: axisorthotech-child
*/

/* Logo palette: navy #0a2540, royal blue #35347e, teal #00a693 */

:root {
	--aot-brand: #0a2540;
	--aot-brand-dark: #082035;
	--aot-brand-accent: #35347e;
	--aot-accent: #00a693;
	--aot-accent-dark: #008575;
	--aot-surface: #f4f7fa;
	--aot-foreground: #0a2540;
	--aot-muted: #4a6278;
	--aot-white: #ffffff;
}

body {
	color: var(--aot-foreground);
	background: var(--aot-surface);
}

a {
	color: var(--aot-accent-dark);
}

a:hover {
	color: var(--aot-brand-accent);
}

.site-header {
	background: var(--aot-white);
	border-bottom: 2px solid #e3eaf0;
	box-shadow: 0 1px 0 rgb(10 37 64 / 4%);
}

.site-header__inner {
	padding-block: 1rem 1.1rem;
	align-items: center;
}

.site-branding {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
	max-width: 100%;
}

.site-branding .custom-logo-link {
	display: block;
	line-height: 0;
}

.site-branding .custom-logo,
.site-branding .custom-logo-link img,
.site-branding img.site-logo,
.site-branding img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-height: none !important;
	min-height: 3.25rem;
	height: 3.25rem !important;
	max-width: min(18rem, 85vw) !important;
	object-fit: contain;
	object-position: left center;
}

@media (min-width: 48rem) {
	.site-branding .custom-logo,
	.site-branding .custom-logo-link img,
	.site-branding img.site-logo,
	.site-branding img {
		min-height: 4.25rem;
		height: 4.25rem !important;
		max-width: 22rem !important;
	}
}

@media (min-width: 64rem) {
	.site-branding .custom-logo,
	.site-branding .custom-logo-link img,
	.site-branding img.site-logo,
	.site-branding img {
		min-height: 5rem;
		height: 5rem !important;
		max-width: 26rem !important;
	}
}

.site-title {
	color: var(--aot-brand);
	letter-spacing: 0.02em;
}

.site-nav__list a {
	color: var(--aot-brand);
	font-weight: 500;
}

.site-nav__list a:hover {
	color: var(--aot-accent);
	text-decoration: none;
}

/* Navigation */
.site-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 0.3rem;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid #d7e2ea;
	border-radius: 0.35rem;
	background: var(--aot-white);
	cursor: pointer;
}

.site-nav-toggle__bar {
	display: block;
	width: 1.25rem;
	height: 2px;
	margin-inline: auto;
	background: var(--aot-brand);
}

.site-nav__list {
	align-items: center;
}

.site-nav__list > li {
	position: relative;
}

.site-nav__list .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 14rem;
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
	background: var(--aot-white);
	border: 1px solid #e3eaf0;
	border-radius: 0.35rem;
	box-shadow: 0 12px 28px rgb(10 37 64 / 12%);
	z-index: 100;
}

.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu {
	display: block;
}

.site-nav__list .sub-menu a {
	display: block;
	padding: 0.55rem 1rem;
	color: var(--aot-brand);
	white-space: nowrap;
}

.site-nav__list .sub-menu a:hover {
	background: var(--aot-surface);
	color: var(--aot-accent);
}

@media (max-width: 47.99rem) {
	.site-nav-toggle {
		display: flex;
		margin-left: auto;
	}

	.site-nav {
		display: none;
		width: 100%;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-header__inner {
		flex-wrap: wrap;
	}

	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.75rem 0 0;
	}

	.site-nav__list > li {
		border-top: 1px solid #e8edf2;
	}

	.site-nav__list a {
		display: block;
		padding: 0.75rem 0;
	}

	.site-nav__list .sub-menu {
		display: block;
		position: static;
		border: 0;
		box-shadow: none;
		padding: 0 0 0.5rem 1rem;
	}
}

@media (min-width: 48rem) {
	.site-nav {
		margin-left: auto;
	}
}

.entry-title a {
	color: var(--aot-brand);
}

.entry-title a:hover {
	color: var(--aot-accent);
}

.site-footer {
	background: linear-gradient(
		135deg,
		var(--aot-brand-dark) 0%,
		var(--aot-brand) 45%,
		var(--aot-brand-accent) 100%
	);
}

.site-footer__nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.site-footer__nav-list a {
	color: var(--aot-white);
	opacity: 0.92;
}

.site-footer__nav-list a:hover {
	color: #7ee8d8;
	opacity: 1;
}

.wp-block-button__link,
button,
input[type="submit"] {
	background: var(--aot-accent);
	color: var(--aot-white);
}

.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--aot-accent-dark);
}

.aot-footer__grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	margin-bottom: 2rem;
}

.aot-footer__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.aot-footer__text {
	margin: 0;
	opacity: 0.88;
	max-width: 22rem;
}

.aot-footer__heading {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 600;
}

.aot-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aot-footer__links li + li {
	margin-top: 0.35rem;
}

.aot-footer__links a {
	color: var(--aot-white);
	opacity: 0.9;
	text-decoration: none;
}

.aot-footer__links a:hover {
	color: #7ee8d8;
	opacity: 1;
}
