/*
 * Theme chrome: header + footer (Customizer-driven, not Elementor widgets).
 * Depends on tokens.css. Both roots carry the `tra` class, so all tokens apply.
 */

.tra-header,
.tra-footer {
	--tra-ink: #ffffff;
	color: #ffffff;
}

/* ---------------------------------------------------------------- header */

.tra-header {
	position: relative;
	z-index: 50;
}

.tra-header--sticky {
	position: sticky;
	top: 0;
}

.tra-header__bar {
	padding: 1rem 1.5rem;
	background-color: var(--tra-primary);
	border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.tra-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

/* brand (shared with footer) */

.tra-brand {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.75rem;
}

.tra-brand__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--tra-r-sm);
	background-color: var(--tra-accent);
	transform: rotate(45deg);
}

.tra-brand__mark-letter {
	display: block;
	font-size: var(--tra-fs-xl);
	font-weight: 900;
	line-height: 1;
	color: #ffffff;
	transform: rotate(-45deg);
}

.tra-brand__text {
	font-size: var(--tra-fs-xl);
	font-weight: 900;
	letter-spacing: -0.05em;
	line-height: 1.1;
	text-transform: uppercase;
	color: #ffffff;
}

.tra-brand__image {
	width: auto;
	max-height: 3rem;
}

/* primary nav */

.tra-nav {
	display: none;
}

.tra-nav__list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	font-size: var(--tra-fs-3xs);
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tra-nav__list > li {
	position: relative;
	padding-block: 0.5rem;
}

.tra-nav__list a:hover,
.tra-nav__list a:focus-visible {
	color: var(--tra-gold);
}

.tra-nav__list > li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 0.3em;
	height: 0.3em;
	margin-left: 0.45em;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-0.15em) rotate(45deg);
}

.tra-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	min-width: 16rem;
	margin-top: 0.5rem;
	padding-block: 1rem;
	background-color: var(--tra-primary);
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: 0.75rem;
	box-shadow: var(--tra-shadow-2xl);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--tra-transition), visibility var(--tra-transition);
}

.tra-nav__list > li:hover > .sub-menu,
.tra-nav__list > li:focus-within > .sub-menu,
.tra-nav__list > li.tra-is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.tra-nav__list .sub-menu a {
	display: block;
	padding: 0.5rem 1.5rem;
}

.tra-nav__list .sub-menu a:hover,
.tra-nav__list .sub-menu a:focus-visible {
	background-color: rgb(255 255 255 / 0.05);
	color: var(--tra-gold);
}

/* header actions */

.tra-header__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 1.5rem;
}

.tra-header__phone {
	display: none;
	flex-direction: column;
	align-items: flex-end;
}

.tra-header__phone-label {
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.4);
}

.tra-header__phone-number {
	font-size: var(--tra-fs-xs);
	font-weight: 900;
}

.tra-header__phone-number:hover {
	color: var(--tra-gold);
}

.tra-header__cta {
	display: none;
}

.tra-header__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	background: transparent;
	border: 0;
	color: #ffffff;
	cursor: pointer;
}

.tra-header__toggle-close {
	display: none;
}

.tra-header__toggle[aria-expanded="true"] .tra-header__toggle-open {
	display: none;
}

.tra-header__toggle[aria-expanded="true"] .tra-header__toggle-close {
	display: inline-flex;
}

/* mobile drawer */

.tra-header__mobile {
	padding: 1rem 1.5rem 2rem;
	background-color: var(--tra-primary);
	border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.tra-header__mobile[hidden] {
	display: none;
}

.tra-nav__list--mobile {
	display: block;
	font-size: var(--tra-fs-xs);
}

.tra-nav__list--mobile > li,
.tra-nav__list--mobile .sub-menu > li {
	padding-block: 0.375rem;
}

.tra-nav__list--mobile .sub-menu {
	position: static;
	min-width: 0;
	margin: 0;
	padding-block: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
}

.tra-nav__list--mobile .sub-menu a {
	padding: 0.25rem 0 0.25rem 1rem;
	font-weight: 700;
	color: rgb(255 255 255 / 0.7);
}

.tra-header__mobile-phone {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1.5rem 0;
	font-size: var(--tra-fs-sm);
	font-weight: 900;
}

@media (min-width: 640px) {
	.tra-header__cta {
		display: inline-flex;
	}
}

@media (min-width: 1024px) {
	.tra-nav {
		display: block;
	}

	.tra-header__toggle,
	.tra-header__mobile {
		display: none;
	}
}

@media (min-width: 1280px) {
	.tra-header__phone {
		display: flex;
	}
}

/* ---------------------------------------------------------------- footer */

.tra-footer {
	padding: 6rem 1.5rem 3rem;
	background-color: var(--tra-primary);
}

.tra-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4rem;
	margin-bottom: 5rem;
}

.tra-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2rem;
}

.tra-footer__about {
	font-size: var(--tra-fs-sm);
	line-height: 1.625;
	color: rgb(255 255 255 / 0.6);
}

.tra-footer__social {
	display: flex;
	gap: 1rem;
}

.tra-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--tra-r-pill);
	background-color: rgb(255 255 255 / 0.05);
}

.tra-footer__social-link:hover,
.tra-footer__social-link:focus-visible {
	background-color: var(--tra-accent);
}

.tra-footer__title {
	display: block;
	margin-bottom: 2.5rem;
}

.tra-footer__branches {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.tra-footer__branch-name {
	margin-bottom: 0.25rem;
	font-size: var(--tra-fs-sm);
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: color var(--tra-transition);
}

.tra-footer__branch:hover .tra-footer__branch-name {
	color: var(--tra-accent);
}

.tra-footer__branch-address {
	font-size: var(--tra-fs-xs);
	font-style: italic;
	line-height: 1.625;
	color: rgb(255 255 255 / 0.5);
}

.tra-footer__menu {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-size: var(--tra-fs-sm);
	font-weight: 700;
	color: rgb(255 255 255 / 0.7);
}

.tra-footer__menu a:hover,
.tra-footer__menu a:focus-visible {
	color: var(--tra-accent);
}

.tra-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	font-size: var(--tra-fs-sm);
}

.tra-footer__contact-link,
.tra-footer__hours {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.tra-footer__contact-link {
	font-weight: 700;
}

.tra-footer__contact-link:hover,
.tra-footer__contact-link:focus-visible {
	color: var(--tra-accent);
}

.tra-footer__hours span {
	font-size: var(--tra-fs-3xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.6);
}

.tra-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgb(255 255 255 / 0.1);
}

.tra-footer__copyright {
	font-size: var(--tra-fs-3xs);
	font-weight: 700;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.2);
}

.tra-footer__legal {
	display: flex;
	gap: 2rem;
	font-size: var(--tra-fs-3xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.4);
}

.tra-footer__legal a:hover,
.tra-footer__legal a:focus-visible {
	color: var(--tra-accent);
}

@media (min-width: 768px) {
	.tra-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tra-footer__bottom {
		flex-direction: row;
	}
}

@media (min-width: 1024px) {
	.tra-footer__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Accessibility helper (parent theme also ships one; harmless duplicate). */
.tra .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}
