/* Site header + footer (all pages). Motion uses transform/opacity only. */

/* ---------- Header ---------- */
.at-header {
	position: relative;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--at-line);
}

.at-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(32px, 3.4vw, 65px);
	height: 112px;
}

.at-header__logo {
	flex: none;
	display: block;
	border-radius: 8px;
}

.at-header__logo img {
	display: block;
	width: 111px;
	height: auto;
}

.at-header__logo:focus-visible {
	outline: 2px solid var(--at-ink);
	outline-offset: 4px;
}

.at-nav--desktop {
	flex: 1;
}

.at-nav__list,
.at-nav .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.at-nav--desktop > .at-nav__list,
.at-nav--desktop > ul {
	display: flex;
	align-items: center;
	gap: clamp(24px, 3vw, 57px);
}

.at-nav--desktop li {
	position: relative;
	display: flex;
	align-items: center;
}

.at-nav--desktop > ul > li > a {
	position: relative;
	display: block;
	padding-block: 8px;
	color: var(--at-muted);
	font-size: 16px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.at-nav--desktop > ul > li > a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 2px;
	height: 2px;
	border-radius: 2px;
	background: var(--at-teal);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s var(--at-ease);
}

.at-nav--desktop > ul > li > a:hover,
.at-nav--desktop > ul > li > a:focus-visible,
.at-nav--desktop > ul > li:focus-within > a {
	color: var(--at-teal-hover);
}

.at-nav--desktop > ul > li > a:hover::after,
.at-nav--desktop > ul > li > a:focus-visible::after {
	transform: scaleX(1);
}

.at-nav--desktop > ul > .current-menu-item > a,
.at-nav--desktop > ul > .current_page_item > a {
	color: var(--at-body);
	font-weight: 500;
}

.at-nav a:focus-visible,
.at-nav__sub-toggle:focus-visible {
	outline: 2px solid var(--at-ink);
	outline-offset: 3px;
	border-radius: 4px;
}

.at-nav__sub-toggle {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin-inline-start: 2px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--at-muted);
	cursor: pointer;
}

.at-nav__chevron {
	width: 7px;
	height: 7px;
	margin-top: -4px;
	border-right: 1.5px solid currentColor; /* physical: down chevron after rotate(45deg) */
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.25s var(--at-ease);
}

.at-nav__sub-toggle[aria-expanded="true"] .at-nav__chevron {
	transform: translateY(3px) rotate(225deg);
}

/* Desktop dropdown: opens on hover, keyboard focus or toggle button. */
.at-nav--desktop .sub-menu {
	position: absolute;
	top: calc(100% + 12px);
	inset-inline-start: -16px;
	min-width: 240px;
	padding: 10px;
	border: 1px solid var(--at-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 40px -16px rgba(2, 2, 2, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.25s var(--at-ease), visibility 0s linear 0.25s;
}

.at-nav--desktop .sub-menu::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: -14px;
	height: 14px;
}

.at-nav--desktop li:hover > .sub-menu,
.at-nav--desktop li:focus-within > .sub-menu,
.at-nav--desktop li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.at-nav--desktop .sub-menu a {
	display: block;
	width: 100%;
	padding: 8px 12px;
	border-radius: 10px;
	color: var(--at-body);
	font-size: 15px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--at-ease);
}

.at-nav--desktop .sub-menu a:hover,
.at-nav--desktop .sub-menu a:focus-visible {
	background: rgba(87, 179, 183, 0.1);
	color: var(--at-teal-hover);
	transform: translateX(-3px);
}

.at-header__cta {
	flex: none;
	margin-inline-start: auto;
}

.at-header__toggle {
	display: none;
}

/* Drawer (mobile/tablet) */
.at-drawer[hidden] {
	display: none;
}

.at-drawer {
	position: fixed;
	inset: 0;
	z-index: 100;
}

.at-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 2, 2, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.at-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: min(340px, 86vw);
	padding: 20px;
	overflow-y: auto;
	background: #fff;
	box-shadow: -12px 0 40px rgba(2, 2, 2, 0.12);
	transform: translateX(100%);
	transition: transform 0.35s var(--at-ease);
}

.at-drawer.is-open .at-drawer__backdrop {
	opacity: 1;
}

.at-drawer.is-open .at-drawer__panel {
	transform: none;
}

.at-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.at-drawer__head img {
	width: 80px;
	height: auto;
}

.at-drawer__close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--at-line);
	border-radius: 50%;
	background: #fff;
	color: var(--at-body);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.25s var(--at-ease), border-color 0.2s ease;
}

.at-drawer__close:hover,
.at-drawer__close:focus-visible {
	border-color: var(--at-teal);
	transform: rotate(90deg);
}

.at-drawer__close:focus-visible {
	outline: 2px solid var(--at-ink);
	outline-offset: 2px;
}

.at-nav--drawer > ul > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--at-line);
}

.at-nav--drawer > ul > li > a {
	flex: 1;
	padding: 14px 4px;
	color: var(--at-body);
	font-size: 16px;
	text-decoration: none;
}

.at-nav--drawer > ul > .current-menu-item > a {
	color: var(--at-teal-hover);
	font-weight: 500;
}

.at-nav--drawer .at-nav__sub-toggle {
	width: 44px;
	height: 44px;
}

.at-nav--drawer .sub-menu {
	display: none;
	flex-basis: 100%;
	padding: 0 12px 12px;
}

.at-nav--drawer li.is-open > .sub-menu {
	display: block;
}

.at-nav--drawer .sub-menu a {
	display: block;
	padding: 10px 4px;
	color: var(--at-muted);
	font-size: 15px;
	text-decoration: none;
}

.at-nav--drawer .sub-menu a:hover,
.at-nav--drawer > ul > li > a:hover {
	color: var(--at-teal-hover);
}

.at-drawer__cta {
	margin-top: auto;
	padding-bottom: 8px;
}

body.at-drawer-lock {
	overflow: hidden;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
	.at-header__inner {
		gap: 24px;
	}

	.at-nav--desktop > .at-nav__list,
	.at-nav--desktop > ul {
		gap: 22px;
	}
}

@media (max-width: 991.98px) {
	.at-header__inner {
		height: 72px;
	}

	.at-header__logo img {
		width: 80px;
	}

	.at-nav--desktop,
	.at-header__cta {
		display: none;
	}

	.at-header__toggle {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		margin-inline-start: auto;
		padding: 0;
		border: 1px solid var(--at-line);
		border-radius: 12px;
		background: #fff;
		cursor: pointer;
		transition: border-color 0.2s ease;
	}

	.at-header__toggle:hover {
		border-color: var(--at-teal);
	}

	.at-header__toggle:focus-visible {
		outline: 2px solid var(--at-ink);
		outline-offset: 2px;
	}

	.at-burger {
		display: grid;
		gap: 5px;
		width: 20px;
	}

	.at-burger span {
		display: block;
		height: 2px;
		border-radius: 2px;
		background: var(--at-body);
	}

	.at-burger span:nth-child(2) {
		width: 70%;
		justify-self: start;
	}
}

/* ---------- Footer ---------- */
.at-footer {
	margin-top: clamp(64px, 7vw, 74px);
	padding-top: clamp(40px, 4vw, 64px);
	background: var(--at-soft);
	color: var(--at-body);
}

.at-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 257px) auto auto auto minmax(0, 304px);
	justify-content: space-between;
	gap: 40px;
	align-items: start;
}

.at-footer__logo {
	display: inline-block;
	margin-bottom: 20px;
}

.at-footer__logo img {
	display: block;
	width: 111px;
	height: auto;
}

.at-footer__brand p {
	margin: 0;
	font-size: 16px;
	line-height: 2;
	text-align: justify;
}

.at-footer__title {
	display: inline-block;
	margin: 8px 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--at-teal);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

.at-footer__links,
.at-footer__contact-list,
.at-footer__socials {
	margin: 0;
	padding: 0;
	list-style: none;
}

.at-footer__links li + li {
	margin-top: 16px;
}

.at-footer a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.at-footer__links a {
	position: relative;
	display: inline-block;
	color: var(--at-body);
	font-size: 16px;
	line-height: 1.5;
	transition: color 0.2s ease, transform 0.25s var(--at-ease);
}

.at-footer__links a:hover,
.at-footer__links a:focus-visible {
	color: var(--at-teal-hover);
	transform: translateX(-4px);
}

.at-footer a:focus-visible {
	outline: 2px solid var(--at-ink);
	outline-offset: 3px;
	border-radius: 4px;
}

.at-footer__contact-list li {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 16px;
	line-height: 1.5;
}

.at-footer__contact-list li + li {
	margin-top: 16px;
}

.at-footer__contact-list .at-icon {
	flex: none;
	width: 21px;
	height: 21px;
	color: var(--at-muted);
}

.at-footer__label {
	color: var(--at-muted);
}

.at-footer__contact-list a:hover,
.at-footer__contact-list a:focus-visible {
	color: var(--at-teal-hover);
}

.at-footer__socials {
	display: flex;
	gap: 20px;
	margin-top: 16px;
	padding-inline-start: 4px;
}

.at-footer__socials a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	color: var(--at-teal);
	transition: transform 0.25s var(--at-ease), background-color 0.2s ease, color 0.2s ease;
}

.at-footer__socials .at-icon {
	width: 24px;
	height: 24px;
}

.at-footer__socials a:hover,
.at-footer__socials a:focus-visible {
	background: var(--at-teal);
	color: #fff;
	transform: translateY(-3px);
}

.at-footer__map {
	display: block;
	overflow: hidden;
	border-radius: 12px;
}

.at-footer__map img {
	display: block;
	width: 100%;
	aspect-ratio: 304 / 234;
	object-fit: cover;
	transition: transform 0.5s var(--at-ease);
}

.at-footer__map:hover img {
	transform: scale(1.05);
}

.at-footer__copy {
	margin: 40px 0 0;
	padding: 20px 0;
	border-top: 1px solid #dedee6;
	color: var(--at-muted);
	font-size: 14px;
	text-align: center;
}

@media (max-width: 1279.98px) {
	.at-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		justify-content: stretch;
	}

	.at-footer__brand {
		grid-column: 1 / -1;
		max-width: 560px;
	}

	.at-footer__map {
		grid-column: 1 / -1;
		max-width: 520px;
	}

	.at-footer__map img {
		aspect-ratio: 16 / 7;
	}
}

@media (max-width: 767.98px) {
	.at-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}

	.at-footer__contact {
		grid-column: 1 / -1;
	}

	.at-footer__brand p {
		text-align: start;
	}

	.at-footer__copy {
		margin-top: 28px;
	}
}
