/* Nav Bar — transparent header over the hero (design.md §nav-bar).
   Also defines the shared .tt-btn button styles (first user — system.md §6). */

/* ---- Shared buttons (used here + hero + later sections) ------------------ */
.tt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border: 0;
	border-radius: 0;
	font-family: var(--wp--preset--font-family--oswald, "Oswald", sans-serif) !important;
	font-weight: 700 !important;
	font-size: 14px;
	line-height: 1.45;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tt-btn--primary {
	background-color: var(--wp--preset--color--red, #cf2026) !important;
	color: #fff !important;
}

.tt-btn--primary:hover {
	background-color: #a81a1f !important; /* darker red — confirm exact hover at build */
}

.tt-btn--outline {
	background-color: transparent !important;
	border: 1px solid var(--wp--preset--color--grey, #73736f) !important;
	color: #fff !important;
}

.tt-btn--outline:hover {
	background-color: var(--wp--preset--color--red, #cf2026) !important;
	border-color: var(--wp--preset--color--red, #cf2026) !important;
}

/* ---- Nav bar ------------------------------------------------------------- */
.tt-nav-bar {
	position: relative;
	z-index: 3;
	background: transparent;
}

.tt-nav-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 120px;
	padding-inline: 50px;
}

.tt-nav-bar__logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.tt-nav-bar__logo-img {
	display: block;
	height: 62px;
	width: auto;
}

.tt-nav-bar__logo-img--mark {
	display: none;
}

.tt-nav-bar__right {
	display: flex;
	align-items: center;
	gap: 32px;
}

.tt-nav-bar__links {
	display: flex;
	align-items: center;
	gap: 32px;
}

.tt-nav-bar__link {
	font-family: var(--wp--preset--font-family--oswald, "Oswald", sans-serif) !important;
	font-weight: 500 !important;
	font-size: 14px;
	line-height: 1.45;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	color: #fff !important;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 6px;
	transition: text-decoration-color 0.2s ease;
}

.tt-nav-bar__link:hover {
	text-decoration-color: currentColor;
}

/* ---- Dealers dropdown ----------------------------------------------------
   The Figma header (design.md §nav-bar) has no dropdown, so this borrows the
   nav's own language rather than inventing one: ink panel, Oswald 14px
   uppercase items, red-bright on hover. Opens on :hover AND :focus-within, so
   it is reachable by keyboard with no JS; the panel is `visibility: hidden`
   when closed, which keeps it out of the tab order and the a11y tree. */
.tt-nav-bar__item {
	position: relative;
}

/* Extends the hover target down to meet the panel — without this the 100%
   boundary leaves a dead gap and the menu closes as the pointer travels to it. */
.tt-nav-bar__item--has-menu {
	padding-block: 12px;
}

.tt-nav-bar__item .tt-nav-bar__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* "Resources" opens a menu but navigates nowhere, so its parent is a <button>,
   not an <a href="#">: it stays focusable (which is what drives :focus-within
   on touch and by keyboard) without advertising a destination it doesn't have.
   Buttons don't inherit type styles, but .tt-nav-bar__link sets every one it
   needs — this only has to strip the UA chrome. */
.tt-nav-bar__link--parent {
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.tt-nav-bar__chevron {
	width: 10px;
	height: 6px;
	transition: transform 0.2s ease;
}

.tt-nav-bar__item--has-menu:hover .tt-nav-bar__chevron,
.tt-nav-bar__item--has-menu:focus-within .tt-nav-bar__chevron {
	transform: rotate(180deg);
}

.tt-nav-bar__submenu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	min-width: 220px;
	padding-block: 8px;
	background: var(--wp--preset--color--ink, #141412);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tt-nav-bar__item--has-menu:hover .tt-nav-bar__submenu,
.tt-nav-bar__item--has-menu:focus-within .tt-nav-bar__submenu {
	opacity: 1;
	visibility: visible;
}

.tt-nav-bar__submenu-link {
	padding: 10px 20px;
	font-family: var(--wp--preset--font-family--oswald, "Oswald", sans-serif) !important;
	font-weight: 500 !important;
	font-size: 14px;
	line-height: 1.45;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff !important;
	transition: color 0.2s ease;
}

.tt-nav-bar__submenu-link:hover {
	color: var(--wp--preset--color--red-bright, #ff4349) !important;
}

.tt-nav-bar__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* Currency toggle (visual only) */
.tt-nav-bar__currency {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--barlow, "Barlow", sans-serif);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.5;
}

.tt-nav-bar__currency-alt {
	color: rgba(255, 255, 255, 0.6);
}

.tt-nav-bar__currency-pill {
	padding: 3px 14px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 60px;
	color: #fff;
}

/* Icon links */
.tt-nav-bar__icons {
	display: inline-flex;
	align-items: center;
	gap: 18px;
}

.tt-nav-bar__icon {
	display: inline-flex;
	color: #fff !important;
}

.tt-nav-bar__icon svg {
	width: 16px;
	height: 16px;
}

/* Hamburger — hidden on desktop */
.tt-nav-bar__hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 30px;
	height: 26px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.tt-nav-bar__hamburger span {
	display: block;
	width: 30px;
	height: 2px;
	background: #fff;
}

/* ---- Mobile (≤767px) ----------------------------------------------------- */
@media (max-width: 767px) {
	.tt-nav-bar__inner {
		padding-inline: 30px;
	}

	.tt-nav-bar__logo-img--full {
		display: none;
	}

	.tt-nav-bar__logo-img--mark {
		display: block;
		height: 62px;
	}

	.tt-nav-bar__links,
	.tt-nav-bar__cta,
	.tt-nav-bar__currency {
		display: none;
	}

	.tt-nav-bar__hamburger {
		display: flex;
	}
}
