/* ==========================================================================
   TM Trade Link & Logistics Services: site header, footer and floating
   buttons, shared by the home page and every inner page.
   Class names are prefixed (tm-header, tm-footer, tm-wrap, tm-brand, tm-btn)
   and the design tokens are set on .tm-chrome only, so this file and the
   theme's style.css / logistics.css never restyle each other.
   1. Tokens   2. Base   3. Buttons   4. Header   5. Footer, floating buttons
   6. Inner pages and WordPress   7. Reduced motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
.tm-chrome {
	--navy-950: #071426;
	--navy-900: #0a1b33;
	--navy-700: #14325c;
	--orange-500: #f28a2e;
	--orange-600: #e0592a;
	--orange-700: #b54412; /* orange text on light backgrounds (5:1) */
	--steel-500: #7a7c7d;
	--sand-50: #f7f5f1;
	--white: #fff;
	--ink: #0e1726;
	--ink-soft: #46505f;
	--line-dark: rgba(255, 255, 255, 0.12);
	--line-light: rgba(14, 23, 38, 0.1);
	--on-dark: rgba(255, 255, 255, 0.8);

	--font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
	--font-body: "Inter", "Segoe UI", system-ui, sans-serif;

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--section-pad: clamp(64px, 6vw + 40px, 124px);
	--radius: 12px;
	--radius-lg: 18px;
	--pill: 999px;
	--utility-h: 40px;
	--header-h: 76px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--shadow-1: 0 1px 2px rgba(7, 20, 38, 0.06), 0 4px 12px rgba(7, 20, 38, 0.06);
	--shadow-2: 0 2px 6px rgba(7, 20, 38, 0.08), 0 18px 40px rgba(7, 20, 38, 0.14);
	--shadow-3: 0 30px 70px rgba(4, 12, 24, 0.45);

	font-family: var(--font-body);
	font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

/* 2. Base ------------------------------------------------------------------ */
/* :where() keeps these at element weight, as in styles.css. */
:where(.tm-chrome) h2,
:where(.tm-chrome) h3 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.12;
}

:where(.tm-chrome) p {
	margin: 0;
}

:where(.tm-chrome) img {
	display: block;
	max-width: 100%;
	height: auto;
}

:where(.tm-chrome) a {
	color: inherit;
}

:where(.tm-chrome) ul,
:where(.tm-chrome) ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(.tm-chrome) button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

:where(.tm-chrome) :focus-visible {
	outline: 3px solid var(--orange-600);
	outline-offset: 3px;
	border-radius: 4px;
}

:where(.tm-chrome) .icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: middle;
}

.tm-wrap {
	width: min(100% - var(--gutter) * 2, var(--container));
	margin-inline: auto;
}
.sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.tm-skip {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 200;
	padding: 10px 18px;
	border-radius: var(--pill);
	background: var(--orange-500);
	color: var(--navy-950);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-160%);
	transition: transform 0.2s;
}

.tm-skip:focus {
	transform: none;
}

/* 3. Buttons --------------------------------------------------------------- */
.tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 12px 26px;
	border: 1px solid transparent;
	border-radius: var(--pill);
	font-family: var(--font-body);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, translate 0.25s var(--ease);
}

.tm-btn .icon {
	transition: transform 0.25s var(--ease);
}

.tm-btn:hover .icon {
	transform: translateX(4px);
}

.tm-btn-sm {
	min-height: 42px;
	padding: 9px 18px;
	font-size: 0.9rem;
}

.tm-btn-primary {
	background: var(--orange-500);
	color: var(--navy-950);
	box-shadow: 0 8px 24px rgba(242, 138, 46, 0.28);
}

.tm-btn-primary:hover {
	background: #f59a45;
	box-shadow: 0 12px 30px rgba(242, 138, 46, 0.38);
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line-dark);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: var(--white);
	transition: background-color 0.2s, border-color 0.2s;
}

.icon-btn:hover {
	background: rgba(255, 255, 255, 0.16);
}

.icon-btn--light {
	border-color: var(--line-light);
	background: var(--white);
	color: var(--ink);
}

.icon-btn--light:hover {
	background: var(--sand-50);
	border-color: rgba(14, 23, 38, 0.25);
}

[data-magnetic] {
	translate: var(--mx, 0) var(--my, 0);
}

/* 4. Header -------------------------------------------------------------- */
.scroll-progress {
	position: fixed;
	inset: 0 0 auto;
	z-index: 120;
	height: 2px;
	pointer-events: none;
}

.scroll-progress span {
	display: block;
	height: 100%;
	background: var(--orange-500);
	transform: scaleX(0);
	transform-origin: left;
}

/* The header sits over the top of the page and scrolls away with it; it is
   never sticky. Pages without a hero (404, search, plain pages) add .tm-inner,
   which gives the header a solid bar and pushes the content below it. */
.tm-header {
	position: absolute;
	inset: 0 0 auto;
	z-index: 100;
	color: var(--white);
}

.utility-bar {
	display: none;
	height: var(--utility-h);
	background: var(--navy-950);
	color: var(--on-dark);
	font-size: 0.84rem;
}

.utility-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.utility-list {
	display: flex;
	gap: 28px;
}

.utility-list a,
.utility-list span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.utility-list .icon {
	color: var(--orange-500);
	width: 15px;
	height: 15px;
}

.utility-list a:hover,
.utility-link:hover {
	color: var(--white);
}

.utility-note {
	padding: 1px 7px;
	border-radius: var(--pill);
	background: rgba(242, 138, 46, 0.18);
	color: var(--orange-500);
	font-size: 0.72rem;
	font-weight: 600;
}

.utility-link {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.main-bar {
	position: relative;
	height: var(--header-h);
}

/* Background appears on scroll: opacity only, so nothing repaints. */
.main-bar::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(10, 27, 51, 0.88);
	border-bottom: 1px solid var(--line-dark);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transition: opacity 0.35s var(--ease);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.main-bar::before {
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
	}
}

.nav-open .main-bar::before {
	opacity: 1;
}

.main-inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	height: 100%;
}

.tm-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.brand-chip {
	position: relative;
	display: grid;
	place-items: center;
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--white);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	transition: transform 0.35s var(--ease);
}

.brand-chip img {
	width: 40px;
	height: auto;
}

.brand-ring {
	position: absolute;
	inset: -4px;
	width: calc(100% + 8px);
	height: calc(100% + 8px);
	overflow: visible;
	pointer-events: none;
}

.brand-ring rect {
	fill: none;
	stroke: var(--orange-500);
	stroke-width: 1.5;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	opacity: 0;
}

.is-intro .brand-chip {
	animation: chip-in 0.6s var(--ease-out) both;
}

.is-intro .brand-ring rect {
	animation: ring-draw 0.9s var(--ease) both;
}

@keyframes chip-in {
	from { transform: scale(0.6); opacity: 0; }
	to { transform: none; opacity: 1; }
}

@keyframes ring-draw {
	0% { stroke-dashoffset: 1; opacity: 1; }
	70% { stroke-dashoffset: 0; opacity: 1; }
	100% { stroke-dashoffset: 0; opacity: 0; }
}


.brand-word {
	display: grid;
	font-family: var(--font-head);
	font-size: 1.02rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

@media (min-width: 640px) {
	.tm-header .tm-brand {
		flex: none;
	}
}

.brand-word span {
	color: var(--on-dark);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0;
}

.menu-toggle {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--line-dark);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--white);
}

.menu-toggle .icon {
	grid-area: 1 / 1;
	width: 22px;
	height: 22px;
	transition: opacity 0.2s, transform 0.3s var(--ease);
}

.menu-toggle .icon-close,
.nav-open .menu-toggle .icon-open {
	opacity: 0;
	transform: rotate(-90deg);
}

.nav-open .menu-toggle .icon-close {
	opacity: 1;
	transform: none;
}

.header-actions {
	display: none;
	align-items: center;
	gap: 14px;
}

.phone-chip {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--line-dark);
	border-radius: var(--pill);
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s;
}

.phone-chip:hover {
	background: rgba(255, 255, 255, 0.08);
}

.phone-chip span {
	color: var(--on-dark);
	font-weight: 500;
}

.live-dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--orange-500);
}

.live-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: inherit;
	animation: dot-pulse 2.4s ease-out infinite;
}

@keyframes dot-pulse {
	0% { transform: scale(1); opacity: 0.6; }
	100% { transform: scale(3); opacity: 0; }
}

/* Navigation: full-screen panel below 1180px. */
.site-nav {
	position: fixed;
	inset: var(--header-h) 0 0;
	z-index: -1;
	display: flex;
	flex-direction: column;
	padding: 12px var(--gutter) 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--navy-950);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.nav-open .site-nav {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
}

.nav-open {
	overflow: hidden;
}

.nav-list {
	display: grid;
}

.nav-item {
	border-bottom: 1px solid var(--line-dark);
}

.nav-open .nav-item {
	animation: nav-in 0.45s var(--ease-out) both;
	animation-delay: calc(var(--i, 0) * 45ms + 80ms);
}

@keyframes nav-in {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

.nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 58px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--white);
	font-family: var(--font-head);
	font-size: 1.2rem;
	font-weight: 700;
	text-align: left;
	text-decoration: none;
}

.nav-link .caret {
	transition: transform 0.3s var(--ease);
}

.nav-item.is-open > .nav-link .caret {
	transform: rotate(180deg);
}

.drop {
	display: none;
	padding: 0 0 16px;
}

.nav-item.is-open > .drop {
	display: block;
}

.drop a {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 46px;
	padding: 8px 4px;
	color: var(--on-dark);
	text-decoration: none;
}

.drop a:hover {
	color: var(--white);
}

.mega-grid .icon {
	color: var(--orange-500);
}

.mega-grid strong {
	display: block;
	color: var(--white);
	font-weight: 600;
}

.mega-grid small {
	display: block;
	font-size: 0.84rem;
	line-height: 1.4;
}

/* Commodities row under the service cards. */
.mega-more {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--line-dark);
}

.drop .mega-more-title {
	color: var(--white);
	font-weight: 600;
}

.mega-more-title .icon {
	color: var(--orange-500);
}

.mega-more ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 4px 0 4px 38px;
}

.drop .mega-more li a {
	min-height: 38px;
	padding: 6px 14px;
	border: 1px solid var(--line-dark);
	border-radius: var(--pill);
	font-size: 0.9rem;
}

.nav-call {
	position: sticky;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: auto calc(var(--gutter) * -1) 0;
	padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
	background: var(--orange-500);
	color: var(--navy-950);
	font-weight: 700;
	text-decoration: none;
}

@media (min-width: 640px) {
	.header-actions {
		display: flex;
	}

	.menu-toggle {
		order: 3;
		margin-left: 0;
	}

	.header-actions {
		margin-left: auto;
	}
}

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

	.site-nav {
		top: calc(var(--header-h) + var(--utility-h));
	}
}

@media (min-width: 1180px) {
	.menu-toggle,
	.nav-call {
		display: none;
	}

	.site-nav {
		position: static;
		z-index: auto;
		flex-direction: row;
		margin-left: auto;
		padding: 0;
		overflow: visible;
		background: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.header-actions {
		margin-left: 8px;
	}

	.nav-list {
		display: flex;
		align-items: center;
		gap: 2px;
	}

	.nav-item {
		position: relative;
		border: 0;
	}

	.nav-item.has-mega {
		position: static;
	}

	.nav-link {
		gap: 4px;
		min-height: 44px;
		padding: 0 10px;
		border-radius: 8px;
		font-family: var(--font-body);
		font-size: 0.93rem;
		font-weight: 600;
		white-space: nowrap;
		transition: color 0.2s, background-color 0.2s;
	}

	.nav-link:hover,
	.nav-item.is-open > .nav-link {
		background: rgba(255, 255, 255, 0.08);
	}

	.nav-link .caret {
		width: 15px;
		height: 15px;
	}

	.drop {
		position: absolute;
		top: calc(100% + 10px);
		left: 0;
		display: block;
		min-width: 230px;
		padding: 10px;
		border-radius: var(--radius);
		background: var(--white);
		color: var(--ink);
		box-shadow: var(--shadow-2);
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
	}

	/* Keeps the pointer inside while it crosses the gap above the panel. */
	.drop::before {
		content: "";
		position: absolute;
		inset: -12px 0 auto;
		height: 12px;
	}

	.drop-end {
		right: 0;
		left: auto;
	}

	.nav-item.is-open > .drop {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s;
	}

	.drop a {
		min-height: 40px;
		padding: 8px 12px;
		border-radius: 8px;
		color: var(--ink);
		font-size: 0.93rem;
		font-weight: 500;
	}

	.drop a:hover {
		background: var(--sand-50);
		color: var(--ink);
	}

	.mega {
		right: 0;
		left: 0;
		width: min(920px, 100%);
		margin-inline: auto;
		padding: 16px;
	}

	.mega-grid {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 4px;
	}

	.mega-grid a {
		align-items: flex-start;
		padding: 14px;
	}

	.mega-grid .icon {
		width: 22px;
		height: 22px;
		margin-top: 2px;
		color: var(--orange-600);
	}

	.mega-grid strong {
		color: var(--ink);
	}

	.mega-grid small {
		color: var(--ink-soft);
	}

	.mega-more {
		display: flex;
		align-items: center;
		gap: 10px 16px;
		margin: 10px 0 0;
		padding: 14px 0 2px;
		border-top-color: var(--line-light);
	}

	.drop .mega-more-title {
		gap: 10px;
		padding: 8px 12px 8px 14px;
		color: var(--ink);
		white-space: nowrap;
	}

	.mega-more-title .icon {
		width: 22px;
		height: 22px;
		color: var(--orange-600);
	}

	.mega-more ul {
		padding: 0;
	}

	.drop .mega-more li a {
		min-height: 36px;
		padding: 6px 16px;
		border-color: var(--line-light);
		font-size: 0.88rem;
	}

	.drop .mega-more li a:hover {
		border-color: var(--orange-500);
		background: rgba(242, 138, 46, 0.1);
	}
}

/* Wide screens: the header runs wider than the content so the phone chip
   fits beside the full menu. */
@media (min-width: 1500px) {
	.tm-header .tm-wrap {
		width: min(100% - var(--gutter) * 2, 1440px);
	}

	.phone-chip {
		display: inline-flex;
	}

	.nav-link {
		padding: 0 12px;
	}
}

/* 5. Footer and floating buttons ------------------------------------------ */
/* The bottom padding leaves the floating buttons a clear corner. */
.tm-footer {
	padding-top: 72px;
	padding-bottom: 86px;
	background: var(--navy-900);
	color: var(--on-dark);
	font-size: 0.95rem;
}

.footer-grid {
	display: grid;
	gap: 40px;
}

@media (min-width: 640px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.footer-grid {
		grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
	}
}

.footer-brand .tm-brand {
	color: var(--white);
}

.footer-brand p {
	max-width: 340px;
	margin-top: 18px;
}

.footer-col h2 {
	margin-bottom: 16px;
	color: var(--white);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0;
}

.footer-col li {
	padding: 4px 0;
}

.footer-col a {
	text-decoration: none;
}

.footer-col a:hover {
	color: var(--orange-500);
}

.footer-contact li {
	overflow-wrap: anywhere;
}

/* Ports and commodities: a labelled row of pill links per group. */
.footer-links {
	display: grid;
	gap: 20px;
	margin-top: 48px;
	padding-block: 28px;
	border-top: 1px solid var(--line-dark);
}

@media (min-width: 860px) {
	.footer-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 48px;
	}
}

.footer-link-row h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	color: var(--white);
	font-family: var(--font-body);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.footer-link-row h2::before {
	content: "";
	flex: none;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--orange-500);
}

.footer-link-row ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.footer-link-row a {
	display: inline-block;
	padding: 7px 16px;
	border: 1px solid var(--line-dark);
	border-radius: var(--pill);
	font-size: 0.86rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.footer-link-row a:hover {
	border-color: var(--orange-500);
	background: rgba(242, 138, 46, 0.12);
	color: var(--white);
}

/* Bottom bar: locations and the 24/7 desk on one row, the copyright line and
   the developer credit on the next. The last row keeps clear of the floating
   buttons. */
.footer-base {
	display: grid;
	gap: 16px 32px;
	padding-block: 22px 0;
	border-top: 1px solid var(--line-dark);
	font-size: 0.84rem;
}

@media (min-width: 980px) {
	.footer-base {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}

	.footer-base-links {
		justify-self: end;
	}

	.footer-base-end {
		grid-column: 1 / -1;
		justify-content: space-between;
	}
}

.footer-base p {
	margin: 0;
}

.footer-base-info span {
	margin-inline: 6px;
	color: var(--orange-500);
}

.footer-base-links,
.footer-base-end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 22px;
}

.footer-base-end {
	padding: 16px 0 22px 0;
	border-top: 1px solid var(--line-dark);
}

.footer-desk {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 16px;
	border: 1px solid var(--line-dark);
	border-radius: var(--pill);
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.2s, background-color 0.2s;
}

.footer-desk strong {
	color: var(--white);
}

.footer-desk:hover {
	border-color: var(--orange-500);
	background: rgba(242, 138, 46, 0.12);
}

.footer-credit a {
	color: var(--orange-500);
	font-weight: 600;
	text-decoration: none;
}

.footer-credit a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.float-actions {
	position: fixed;
	right: 18px;
	bottom: calc(18px + env(safe-area-inset-bottom));
	z-index: 90;
	display: grid;
	gap: 10px;
	justify-items: end;
}

.float-btn {
	display: grid;
	place-items: center;
	border-radius: 50%;
	text-decoration: none;
	box-shadow: 0 10px 26px rgba(4, 12, 24, 0.35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px) scale(0.9);
	transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}

.float-actions.is-visible .float-btn {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s;
}

html:not(.js) .float-btn {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.float-call {
	position: relative;
	width: 60px;
	height: 60px;
	align-content: center;
	gap: 0;
	background: var(--orange-500);
	color: var(--navy-950);
}

.float-call::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--orange-500);
	animation: dot-pulse 2.6s ease-out infinite;
}

.float-call span {
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 1;
}

.float-call .icon {
	width: 20px;
	height: 20px;
}

.float-top {
	width: 46px;
	height: 46px;
	border: 1px solid var(--line-dark);
	background: var(--navy-900);
	color: var(--white);
}

.float-actions.is-visible .float-top {
	transition-delay: 0.08s;
}

/* 6. Inner pages and WordPress ---------------------------------------------- */
/* Pages without a hero photo (404, search, plain pages): the header gets a
   solid bar and the content starts below it (main bar 76px, plus the 40px
   utility bar from 1024px). */
.tm-inner {
	padding-top: 76px;
}

@media (min-width: 1024px) {
	.tm-inner {
		padding-top: 116px;
	}
}

.tm-inner .main-bar::before {
	opacity: 1;
}

/* The header scrolls away, so an anchor only needs to clear its own margin. */
html:has(> body.tm-chrome-page) {
	scroll-padding-top: 24px;
}

/* Social icons, under the brand column's text. */
.footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.footer-social .icon-btn {
	width: 42px;
	height: 42px;
	border: 1px solid var(--line-dark);
	background: rgba(255, 255, 255, 0.04);
	transition: border-color 0.2s, background-color 0.2s, color 0.2s, translate 0.2s var(--ease);
}

.footer-social .icon-btn:hover {
	border-color: var(--orange-500);
	background: var(--orange-500);
	color: var(--navy-950);
	translate: 0 -2px;
}

.footer-social .icon {
	width: 18px;
	height: 18px;
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.footer-legal a {
	text-decoration: none;
}

.footer-legal a:hover {
	color: var(--orange-500);
}

/* Signed-in users: the admin bar sits above the fixed header. */
.admin-bar {
	--wp-bar: 32px;
}

@media (max-width: 782px) {
	.admin-bar {
		--wp-bar: 46px;
	}
}

.admin-bar .scroll-progress {
	top: var(--wp-bar);
}

.admin-bar .site-nav {
	top: calc(var(--header-h) + var(--wp-bar));
}

@media (min-width: 1024px) {
	.admin-bar .site-nav {
		top: calc(var(--header-h) + var(--utility-h) + var(--wp-bar));
	}
}

/* 7. Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	:where(.tm-chrome),
	:where(.tm-chrome) *,
	:where(.tm-chrome) *::before,
	:where(.tm-chrome) *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.live-dot::after,
	.float-call::before {
		animation: none !important;
	}

	[data-magnetic] {
		translate: none;
	}
}
