/* ==========================================================================
   PTI — Universal header and footer
   Every selector is namespaced under .pti-header / .pti-footer / .pti-drawer
   so that nothing here can reach into Elementor-built page content.
   ========================================================================== */

/* ==========================================================================
   HEADER
   ========================================================================== */

.pti-header {
	position: relative;
	z-index: 200;
	font-family: var(--pti-font-eyebrow);
}

/* --- Top strip ------------------------------------------------------------ */

.pti-strip {
	background: var(--pti-navy);
	color: var(--pti-on-navy-muted);
}

.pti-strip__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 38px;
}

.pti-strip__note {
	margin: 0;
	font-size: 0.75rem;      /* 12px */
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pti-on-navy-muted);
}

.pti-header .pti-strip__link {
	flex: none;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--pti-gold-bright);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s var(--pti-ease);
}

.pti-header .pti-strip__link:hover {
	border-bottom-color: var(--pti-gold-bright);
}

@media (max-width: 780px) {
	.pti-strip__note { display: none; }
	.pti-strip__inner { justify-content: center; }
}

/* --- Masthead ------------------------------------------------------------- */

.pti-masthead {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--pti-surface);
	border-bottom: 1px solid var(--pti-rule);
}

.pti-masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 80px;
}

/* --- Brand ---------------------------------------------------------------- */

.pti-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	flex: none;
}

/* 52px suited the old wordmark, which was a 4:1 strip. The current logo is a
   2.2:1 lockup with the head mark setting the height, so at 52px the wordmark
   came out around a third smaller. 64px restores it without making the sticky
   masthead heavy. */
.pti-brand--image img,
.pti-brand img {
	display: block;
	max-height: 64px;
	width: auto;
	height: auto;
}

@media (max-width: 600px) {
	.pti-brand--image img,
	.pti-brand img {
		max-height: 50px;
	}
}

.pti-brand__mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: 10px;
	background: var(--pti-navy);
	color: var(--pti-gold);
	font-family: var(--pti-font-eyebrow);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.pti-brand__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1;
}

.pti-brand__name {
	font-family: var(--pti-font-display);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--pti-navy);
	letter-spacing: -0.01em;
}

.pti-brand__name em {
	font-style: normal;
	font-weight: 400;
	color: var(--pti-navy-mid);
}

.pti-brand__tag {
	font-size: 0.625rem;     /* 10px */
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pti-slate-light);
}

@media (max-width: 520px) {
	.pti-brand__tag { display: none; }
	.pti-brand__name { font-size: 1.3125rem; }
}

/* --- Primary navigation --------------------------------------------------- */

.pti-nav__list,
.pti-drawer__list,
.pti-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pti-nav__list {
	display: flex;
	align-items: center;
	gap: 30px;
}

.pti-nav__list > li > a,
.pti-nav__list > li.menu-item > a {
	position: relative;
	display: block;
	padding: 6px 0;
	font-family: var(--pti-font-eyebrow);
	font-size: 0.875rem;      /* 14px */
	font-weight: 500;
	letter-spacing: 0.015em;
	color: var(--pti-navy);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s var(--pti-ease);
}

.pti-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--pti-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--pti-ease);
}

.pti-nav__list > li > a:hover {
	color: var(--pti-navy-mid);
}

.pti-nav__list > li > a:hover::after,
.pti-nav__list > li.is-current > a::after,
.pti-nav__list > li.current-menu-item > a::after,
.pti-nav__list > li.current_page_item > a::after {
	transform: scaleX(1);
}

.pti-nav__list > li.is-current > a,
.pti-nav__list > li.current-menu-item > a,
.pti-nav__list > li.current_page_item > a {
	color: var(--pti-navy);
	font-weight: 600;
}

/* Sub-menus, for when the condition and clinical libraries land. */
.pti-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: var(--pti-surface);
	border: 1px solid var(--pti-rule);
	border-radius: var(--pti-radius-sm);
	box-shadow: var(--pti-shadow-lift);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s var(--pti-ease), transform 0.2s var(--pti-ease), visibility 0.2s;
}

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

.pti-nav__list > li:hover > .sub-menu,
.pti-nav__list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.pti-nav__list .sub-menu a {
	display: block;
	padding: 9px 20px;
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--pti-slate);
	text-decoration: none;
}

.pti-nav__list .sub-menu a:hover {
	background: var(--pti-surface-cool);
	color: var(--pti-navy);
}

/* --- Burger --------------------------------------------------------------- */

.pti-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.pti-burger__bar {
	display: block;
	width: 24px;
	height: 2px;
	margin-inline: auto;
	background: var(--pti-navy);
	border-radius: 2px;
	transition: transform 0.25s var(--pti-ease), opacity 0.2s var(--pti-ease);
}

.pti-burger[aria-expanded="true"] .pti-burger__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.pti-burger[aria-expanded="true"] .pti-burger__bar:nth-child(2) {
	opacity: 0;
}
.pti-burger[aria-expanded="true"] .pti-burger__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* --- Drawer --------------------------------------------------------------- */

.pti-drawer {
	background: var(--pti-navy);
	border-top: 1px solid var(--pti-rule-dark);
}

.pti-drawer[hidden] {
	display: none;
}

.pti-drawer__nav {
	padding-block: 12px 4px;
}

.pti-drawer__list > li + li {
	border-top: 1px solid var(--pti-rule-dark);
}

.pti-drawer .pti-drawer__list a {
	display: block;
	padding: 15px 0;
	font-family: var(--pti-font-eyebrow);
	font-size: 1.0625rem;
	font-weight: 500;
	color: var(--pti-on-navy);
	text-decoration: none;
}

.pti-drawer .pti-drawer__list > li.is-current > a,
.pti-drawer .pti-drawer__list > li.current-menu-item > a {
	color: var(--pti-gold-bright);
}

.pti-drawer__list .sub-menu {
	list-style: none;
	margin: 0 0 10px;
	padding: 0 0 0 18px;
}

.pti-drawer .pti-drawer__list .sub-menu a {
	padding: 10px 0;
	font-size: 0.9375rem;
	font-weight: 400;
	color: var(--pti-on-navy-muted);
}

.pti-drawer .pti-drawer__policy {
	display: inline-block;
	margin: 6px 0 26px;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--pti-gold-bright);
	text-decoration: none;
}

/* --- Breakpoint ----------------------------------------------------------- */

@media (max-width: 1023px) {
	.pti-nav { display: none; }
	.pti-burger { display: flex; }
	.pti-masthead__inner { min-height: 70px; }
}

@media (min-width: 1024px) {
	.pti-drawer { display: none !important; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.pti-footer {
	background: var(--pti-navy);
	color: var(--pti-on-navy-muted);
	font-family: var(--pti-font-body);
	font-size: 0.9375rem;
	line-height: 1.65;
	margin-top: var(--pti-rhythm);
}

.pti-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
	gap: 48px;
	padding-block: 72px 56px;
}

.pti-footer__col--brand {
	max-width: 34ch;
}

/* --- Footer brand --------------------------------------------------------- */

.pti-footer .pti-footer__brand {
	display: block;
	margin-bottom: 16px;
	font-family: var(--pti-font-display);
	font-size: 1.625rem;
	font-weight: 600;
	color: var(--pti-on-navy);
	text-decoration: none;
	letter-spacing: -0.01em;
}

/* Team logo above the wordmark. The file is a light recolour of the master
   logo -- the master is dark ink on transparency and vanishes on navy. */
.pti-footer .pti-footer__logo {
	display: block;
	width: 100%;
	max-width: 280px;
	height: auto;
	margin: 0 0 14px;
}

.pti-footer .pti-footer__wordmark {
	display: block;
}

.pti-footer .pti-footer__brand em {
	font-style: normal;
	font-weight: 400;
	color: var(--pti-gold);
}

.pti-footer .pti-footer__blurb {
	margin: 0 0 22px;
	font-size: 0.9375rem;
	color: var(--pti-on-navy-muted);
}

.pti-footer__contact {
	margin: 0;
	font-size: 0.875rem;
}

.pti-footer .pti-footer__contact-label {
	display: block;
	margin-bottom: 3px;
	font-family: var(--pti-font-eyebrow);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pti-gold);
}

.pti-footer .pti-footer__contact a {
	color: var(--pti-on-navy);
	text-decoration: none;
	border-bottom: 1px solid var(--pti-rule-dark);
}

.pti-footer .pti-footer__contact a:hover {
	border-bottom-color: var(--pti-gold);
}

/* --- Footer columns ------------------------------------------------------- */

.pti-footer .pti-footer__head {
	margin: 0 0 18px;
	font-family: var(--pti-font-eyebrow);
	font-size: 0.6875rem;      /* 11px */
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pti-gold);
}

.pti-footer__list li + li {
	margin-top: 11px;
}

.pti-footer .pti-footer__list a {
	font-size: 0.9375rem;
	color: var(--pti-on-navy-muted);
	text-decoration: none;
	transition: color 0.2s var(--pti-ease);
}

.pti-footer .pti-footer__list a:hover {
	color: var(--pti-on-navy);
}

/* --- Clinical care column ------------------------------------------------- */

.pti-footer__col--care {
	padding: 26px 28px;
	background: var(--pti-navy-soft);
	border: 1px solid var(--pti-rule-dark);
	border-radius: var(--pti-radius);
}

.pti-footer .pti-footer__care-note {
	margin: 0 0 16px;
	font-size: 0.875rem;
	color: var(--pti-on-navy-muted);
}

.pti-footer .pti-footer__care-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--pti-font-eyebrow);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--pti-gold-bright);
	text-decoration: none;
}

.pti-footer .pti-footer__care-link span {
	transition: transform 0.2s var(--pti-ease);
}

.pti-footer .pti-footer__care-link:hover span {
	transform: translateX(4px);
}

.pti-footer .pti-footer__coi {
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--pti-rule-dark);
	font-size: 0.75rem;
	line-height: 1.6;
	color: var(--pti-on-navy-muted);
}

/* --- Disclaimer band ------------------------------------------------------ */

.pti-disclaimer {
	background: rgba(0, 0, 0, 0.22);
	border-top: 1px solid var(--pti-rule-dark);
}

.pti-footer .pti-disclaimer p {
	margin: 0;
	padding-block: 22px;
	font-size: 0.8125rem;
	line-height: 1.65;
	color: var(--pti-on-navy-muted);
}

.pti-footer .pti-disclaimer strong {
	color: var(--pti-on-navy);
	font-weight: 600;
}

/* --- Colophon ------------------------------------------------------------- */

.pti-colophon {
	border-top: 1px solid var(--pti-rule-dark);
}

.pti-colophon__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	padding-block: 22px;
}

.pti-footer .pti-colophon p {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--pti-on-navy-muted);
}

.pti-footer .pti-colophon a {
	color: var(--pti-on-navy-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.pti-footer .pti-colophon a:hover {
	color: var(--pti-on-navy);
	border-bottom-color: var(--pti-gold);
}

/* --- Footer responsive ---------------------------------------------------- */

@media (max-width: 1000px) {
	.pti-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 42px;
		padding-block: 56px 44px;
	}
	.pti-footer__col--brand {
		grid-column: 1 / -1;
		max-width: 52ch;
	}
	.pti-footer__col--care {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.pti-footer__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	.pti-colophon__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
}
