/* =====================================================================
   TRIO Renewable — main stylesheet (v1.1.0)
   1. Design tokens
   2. Base + utilities
   3. Header
   4. Footer
   5. Floating WhatsApp button
   6. Motion safety
   All classes use the "tr-" prefix so they never clash with Elementor,
   Hello Elementor or the homepage v65 widget (#trio …).
   ===================================================================== */

/* ---------- 1. Design tokens (from homepage v65) ---------- */
:root {
	--trio-navy:   #0D1259;
	--trio-blue:   #1A237E;
	--trio-indigo: #3949AB;
	--trio-accent: #2979FF;
	--trio-sky:    #448AFF;
	--trio-sky-2:  #82B1FF;

	--trio-ink:    #1A1A2E;
	--trio-text:   #2B3134;
	--trio-muted:  #5B6266;
	--trio-foot-text: #CDD3F2;

	--trio-paper:  #F4F6FC;
	--trio-soft:   #F4F7FC;
	--trio-line:   #E3E7F2;
	--trio-white:  #FFFFFF;
	--trio-wa:     #25D366;

	--trio-grad:     linear-gradient(135deg, #1A237E 0%, #3949AB 100%);
	--trio-grad-acc: linear-gradient(135deg, #2979FF 0%, #3949AB 100%);
	--trio-enq:      linear-gradient(135deg, #2979FF 0%, #1A4FD6 100%);
	--trio-enq-h:    linear-gradient(135deg, #1A4FD6 0%, #1A237E 100%);

	--trio-radius:    18px;
	--trio-radius-sm: 12px;
	--trio-wrap:      1240px;
	--trio-gutter:    24px;
	--trio-ease:      cubic-bezier(.4, 0, .2, 1);
	--trio-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--tr-hd-h: 96px;       /* header height (desktop) */
	--tr-hd-h-s: 76px;     /* header height after scrolling */
}

/* ---------- 2. Base + utilities ---------- */
html { scroll-padding-top: calc(var(--tr-hd-h-s) + 16px); }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

.tr-wrap {
	max-width: var(--trio-wrap);
	margin: 0 auto;
	padding: 0 var(--trio-gutter);
}

.tr-ic { flex-shrink: 0; display: block; }

.tr-skip {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100000;
	padding: 12px 18px;
	border-radius: 10px;
	background: var(--trio-blue);
	color: #fff !important;
	font: 600 15px/1 var(--trio-font);
	text-decoration: none;
}
.tr-skip:focus { top: 12px; }

/* Shared focus ring */
.tr-hd a:focus-visible,
.tr-hd button:focus-visible,
.tr-ft a:focus-visible,
.tr-fab:focus-visible {
	outline: 3px solid var(--trio-sky);
	outline-offset: 3px;
}

/* ---------- 3. Header ---------- */
.tr-hd {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 999;
	font-family: var(--trio-font);
}
.tr-hd *,
.tr-hd *::before,
.tr-hd *::after { box-sizing: border-box; }
.tr-hd ul { list-style: none; margin: 0; padding: 0; }

.tr-hd .tr-hd__bar {
	position: relative;
	background-color: rgba(255, 255, 255, .86);
	background-image:
		radial-gradient(600px 160px at 85% -40%, rgba(59, 130, 246, .12), transparent 70%),
		radial-gradient(400px 140px at 5% 120%, rgba(0, 0, 128, .06), transparent 70%);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	transition: background-color .35s var(--trio-ease), box-shadow .3s;
}
.tr-hd.is-scrolled .tr-hd__bar { box-shadow: 0 14px 40px -18px rgba(0, 0, 92, .35); }

.tr-hd .tr-hd__in {
	max-width: 1320px;
	padding: 0 28px;
	height: var(--tr-hd-h);
	display: flex;
	align-items: center;
	gap: 20px;
	transition: height .3s var(--trio-ease);
}
.tr-hd.is-scrolled .tr-hd__in { height: var(--tr-hd-h-s); }

/* Logo */
.tr-hd .tr-hd__logo {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 4px 8px;
	border-radius: 14px;
	transition: transform .25s, background .35s, box-shadow .35s;
}
.tr-hd .tr-hd__logo:hover { transform: scale(1.03); }
.tr-hd .tr-hd__logo img {
	display: block;
	height: 54px;
	width: auto;
	max-width: none;
	transition: height .3s var(--trio-ease);
}
.tr-hd.is-scrolled .tr-hd__logo img { height: 46px; }

/* Main menu */
.tr-hd .tr-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}
.tr-hd .tr-nav__list {
	display: flex;
	align-items: center;
	gap: 6px;
}
.tr-hd .tr-nav__item { position: relative; }

.tr-hd .tr-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 36px;
	padding: 0 14px;
	margin: 0;
	border: 0;
	border-radius: 8px;
	background: var(--trio-grad);
	color: #fff;
	font: 600 14px/1 var(--trio-font);
	letter-spacing: 0;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 6px 18px -6px rgba(26, 35, 126, .45), 0 0 14px rgba(41, 121, 255, .1);
	transition: transform .35s var(--trio-ease), box-shadow .35s var(--trio-ease), background .35s, color .2s;
}
.tr-hd .tr-pill:hover,
.tr-hd .tr-pill:focus-visible,
.tr-hd .tr-pill.is-on,
.tr-hd .tr-dd.is-open > .tr-pill {
	background: var(--trio-grad-acc);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 20px rgba(41, 121, 255, .35);
}
.tr-hd .tr-chev { opacity: .85; transition: transform .25s; }
.tr-hd .tr-dd.is-open .tr-chev,
.tr-hd .tr-dd:hover .tr-chev { transform: rotate(180deg); }

/* Dropdown panel (desktop) */
.tr-hd .tr-dd__m {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	z-index: 5;
	width: 340px;
	padding: 8px;
	background: #fff;
	border: 1px solid rgba(26, 35, 126, .08);
	border-radius: 14px;
	box-shadow: 0 24px 60px -16px rgba(26, 35, 126, .38), 0 0 30px rgba(41, 121, 255, .08);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity .22s, transform .22s, visibility .22s;
}
.tr-hd .tr-dd__m--sm { width: 300px; }
.tr-hd .tr-dd__m::before { /* hover bridge between pill and panel */
	content: "";
	position: absolute;
	left: 0; right: 0; top: -16px;
	height: 16px;
}
.tr-hd .tr-dd__m::after { /* little arrow */
	content: "";
	position: absolute;
	top: -6px; left: 50%;
	width: 12px; height: 12px;
	margin-left: -6px;
	background: #fff;
	border-left: 1px solid rgba(26, 35, 126, .08);
	border-top: 1px solid rgba(26, 35, 126, .08);
	transform: rotate(45deg);
}
.tr-hd .tr-dd:hover > .tr-dd__m,
.tr-hd .tr-dd.is-open > .tr-dd__m {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.tr-hd .tr-dd__m a {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 10px;
	color: var(--trio-ink);
	text-decoration: none;
	transition: background .2s;
}
.tr-hd .tr-dd__m a:hover,
.tr-hd .tr-dd__m a[aria-current="page"] { background: rgba(41, 121, 255, .07); }
.tr-hd .tr-dd__m i {
	width: 36px; height: 36px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
	background: rgba(41, 121, 255, .08);
	color: var(--trio-accent);
	font-style: normal;
	transition: background .2s, color .2s;
}
.tr-hd .tr-dd__m a:hover i { background: var(--trio-grad-acc); color: #fff; }
.tr-hd .tr-dd__m b {
	display: block;
	font: 600 14px/1.3 var(--trio-font);
	color: var(--trio-ink);
}
.tr-hd .tr-dd__m small {
	display: block;
	font: 400 12px/1.3 var(--trio-font);
	color: var(--trio-muted);
}
.tr-hd .tr-dd__m .tr-dd__all {
	justify-content: space-between;
	margin-top: 4px;
	padding: 12px 12px 8px;
	border-top: 1px solid rgba(26, 35, 126, .08);
	border-radius: 0 0 10px 10px;
	font: 600 13.5px/1.3 var(--trio-font);
	color: var(--trio-accent);
}
.tr-hd .tr-dd__m .tr-dd__all:hover { background: none; color: var(--trio-blue); }

/* Contact CTA */
.tr-hd .tr-nav__end { display: flex; align-items: center; }
.tr-hd .tr-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 18px;
	margin-left: 4px;
	border-radius: 10px;
	background: var(--trio-enq);
	color: #fff;
	font: 600 14.5px/1 var(--trio-font);
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 8px 22px -10px rgba(41, 121, 255, .75);
	transition: transform .25s, box-shadow .25s, background .25s;
}
.tr-hd .tr-cta .tr-ic { display: none; }
.tr-hd .tr-cta:hover {
	background: var(--trio-enq-h);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 14px 28px -12px rgba(26, 35, 126, .7);
}
.tr-hd .tr-nav__quick { display: none; }

/* Mobile-only buttons */
.tr-hd .tr-hd__call,
.tr-hd .tr-burger {
	display: none;
	width: 46px;
	height: 46px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 12px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.tr-hd .tr-hd__call {
	margin-left: auto;
	background: rgba(41, 121, 255, .1);
	color: var(--trio-blue);
}
.tr-hd .tr-burger {
	background: var(--trio-grad);
	color: #fff;
	box-shadow: 0 10px 22px -10px rgba(0, 0, 128, .65);
}
.tr-hd .tr-burger:hover,
.tr-hd .tr-burger:focus { background: var(--trio-grad); color: #fff; }
.tr-hd .tr-burger__x { display: none; }
.tr-hd.is-open .tr-burger__x { display: block; }
.tr-hd.is-open .tr-burger__m { display: none; }

/* Desktop: navy bar after scrolling */
@media (min-width: 1061px) {
	.tr-hd.is-scrolled .tr-hd__bar {
		background-color: rgba(26, 35, 126, .94);
		background-image: none;
	}
	.tr-hd.is-scrolled .tr-pill {
		background: rgba(255, 255, 255, .95);
		color: var(--trio-blue);
		box-shadow: none;
	}
	.tr-hd.is-scrolled .tr-pill:hover { background: #fff; color: var(--trio-accent); }
	.tr-hd.is-scrolled .tr-pill.is-on,
	.tr-hd.is-scrolled .tr-dd.is-open > .tr-pill {
		background: var(--trio-grad-acc);
		color: #fff;
		box-shadow: 0 4px 20px rgba(41, 121, 255, .45);
	}
	.tr-hd.is-scrolled .tr-cta { background: #fff; color: var(--trio-blue); box-shadow: 0 4px 24px rgba(0, 0, 0, .2); }
	.tr-hd.is-scrolled .tr-cta:hover { background: #fff; color: var(--trio-accent); }
	.tr-hd.is-scrolled .tr-hd__logo { background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
}

/* Small laptops */
@media (max-width: 1240px) {
	.tr-hd .tr-hd__in { gap: 14px; padding: 0 20px; }
	.tr-hd .tr-hd__logo img { height: 48px; }
	.tr-hd .tr-nav__list { gap: 5px; }
	.tr-hd .tr-pill { height: 34px; padding: 0 11px; font-size: 13.5px; }
	.tr-hd .tr-cta { height: 38px; padding: 0 14px; font-size: 14px; }
}

/* Tablet + mobile: burger menu */
@media (max-width: 1060px) {
	:root { --tr-hd-h: 80px; --tr-hd-h-s: 72px; }

	.tr-hd .tr-hd__bar {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background-color: rgba(255, 255, 255, .98);
	}
	.tr-hd .tr-hd__logo img,
	.tr-hd.is-scrolled .tr-hd__logo img { height: 46px; }
	.tr-hd .tr-hd__call,
	.tr-hd .tr-burger { display: inline-flex; }

	.tr-hd .tr-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		max-height: calc(100vh - var(--tr-hd-h) - var(--wp-admin--admin-bar--height, 0px));
		max-height: calc(100dvh - var(--tr-hd-h) - var(--wp-admin--admin-bar--height, 0px));
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 14px 20px 22px;
		background: #fff;
		border-top: 1px solid rgba(0, 0, 92, .06);
		box-shadow: 0 24px 40px -20px rgba(0, 0, 92, .4);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .25s, transform .25s, visibility .25s;
	}
	.tr-hd.is-open .tr-nav { opacity: 1; visibility: visible; transform: none; }

	.tr-hd .tr-nav__list { flex-direction: column; align-items: stretch; gap: 8px; }
	.tr-hd .tr-pill {
		width: 100%;
		height: 48px;
		padding: 0 18px;
		font-size: 15.5px;
		justify-content: flex-start;
	}
	.tr-hd .tr-pill:hover { transform: none; }
	.tr-hd .tr-dd__t .tr-chev { margin-left: auto; }
	.tr-hd .tr-dd:hover .tr-chev { transform: none; }
	.tr-hd .tr-dd.is-open .tr-chev { transform: rotate(180deg); }

	.tr-hd .tr-dd__m,
	.tr-hd .tr-dd:hover > .tr-dd__m {
		position: static;
		display: none;
		width: auto;
		margin-top: 6px;
		padding: 6px;
		background: var(--trio-soft);
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.tr-hd .tr-dd.is-open > .tr-dd__m { display: block; }
	.tr-hd .tr-dd__m::before,
	.tr-hd .tr-dd__m::after { display: none; }

	.tr-hd .tr-nav__end { flex-direction: column; align-items: stretch; gap: 10px; }
	.tr-hd .tr-cta { height: 50px; margin: 4px 0 0; font-size: 16px; }
	.tr-hd .tr-cta .tr-ic { display: block; }
	.tr-hd .tr-nav__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.tr-hd .tr-quick {
		display: flex;
		align-items: center;
		gap: 10px;
		min-height: 54px;
		padding: 8px 12px;
		border-radius: 12px;
		border: 1px solid rgba(26, 35, 126, .12);
		background: #fff;
		color: var(--trio-blue);
		font: 700 14px/1.2 var(--trio-font);
		text-decoration: none;
	}
	.tr-hd .tr-quick small { display: block; font: 500 11.5px/1.2 var(--trio-font); color: var(--trio-muted); }
	.tr-hd .tr-quick .tr-ic { color: var(--trio-accent); }
	.tr-hd .tr-quick--wa .tr-ic { color: var(--trio-wa); }
}

@media (max-width: 640px) {
	:root { --tr-hd-h: 72px; --tr-hd-h-s: 72px; }
	.tr-hd .tr-hd__in { padding: 0 16px; gap: 10px; }
	.tr-hd .tr-hd__logo { padding: 4px 6px; }
	.tr-hd .tr-hd__logo img,
	.tr-hd.is-scrolled .tr-hd__logo img { height: 40px; }
	.tr-hd .tr-hd__call,
	.tr-hd .tr-burger { width: 44px; height: 44px; }
	.tr-hd .tr-nav { padding: 12px 16px 20px; }
}
@media (max-width: 360px) {
	.tr-hd .tr-nav__quick { grid-template-columns: 1fr; }
}

/* Lock page scroll while the mobile menu is open */
html.tr-menu-open { overflow: hidden; }

/* ---------- 4. Footer ---------- */
.tr-ft {
	position: relative;
	overflow: hidden;
	background-color: var(--trio-navy);
	background-image:
		radial-gradient(circle at 100% 0, rgba(41, 121, 255, .22), transparent 40%),
		radial-gradient(circle at 0 100%, rgba(57, 73, 171, .25), transparent 40%);
	color: var(--trio-foot-text);
	font: 400 14px/1.6 var(--trio-font);
}
.tr-ft *,
.tr-ft *::before,
.tr-ft *::after { box-sizing: border-box; }
.tr-ft ul { list-style: none; margin: 0; padding: 0; }
.tr-ft p { margin: 0; }
.tr-ft a { text-decoration: none; }

/* CTA band */
.tr-ft .tr-ft__cta {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 40px;
	align-items: center;
	padding-top: 80px;
	padding-bottom: 56px;
}
.tr-ft .tr-ft__pitch { display: flex; flex-direction: column; }

.tr-ft .tr-open {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	font-size: 13px;
}
.tr-ft .tr-open b { color: #fff; font-weight: 600; }
.tr-ft .tr-open i { width: 9px; height: 9px; border-radius: 50%; background: #B0B5B8; }
.tr-ft .tr-open.is-on i { background: #1F9D55; box-shadow: 0 0 0 4px rgba(31, 157, 85, .2); }

.tr-ft .tr-ft__title {
	margin: 18px 0;
	font: 900 clamp(36px, 4.6vw, 60px)/1.02 var(--trio-font);
	letter-spacing: -.02em;
	color: #fff;
}
.tr-ft .tr-ft__title em { font-style: normal; color: var(--trio-sky-2); }
.tr-ft .tr-ft__lead { font-size: 18px; max-width: 480px; }

.tr-ft .tr-fcta {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border-radius: 18px;
	transition: transform .2s, box-shadow .2s;
}
.tr-ft .tr-fcta:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.tr-ft .tr-fcta--main { background: #fff; color: var(--trio-blue); box-shadow: 0 4px 24px rgba(0, 0, 0, .15); }
.tr-ft .tr-fcta__ic {
	width: 48px; height: 48px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: var(--trio-grad);
	color: #fff;
}
.tr-ft .tr-fcta__ic--wa { background: var(--trio-wa); }
.tr-ft .tr-fcta__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tr-ft .tr-fcta small {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .7;
}
.tr-ft .tr-fcta__big { font: 800 20px/1.3 var(--trio-font); color: var(--trio-blue); }
.tr-ft .tr-fcta__big:hover { color: var(--trio-accent); }
.tr-ft .tr-fcta__alt { font: 600 14px/1.4 var(--trio-font); color: var(--trio-muted); }
.tr-ft .tr-fcta__alt:hover { color: var(--trio-accent); }
.tr-ft .tr-fcta__go { color: var(--trio-accent); }

.tr-ft .tr-ft__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.tr-ft .tr-fcta--s {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .16);
	color: #fff;
}
.tr-ft .tr-fcta--s .tr-fcta__ic { width: 40px; height: 40px; border-radius: 12px; }
.tr-ft .tr-fcta--s small {
	font-size: 12px; font-weight: 500;
	letter-spacing: 0; text-transform: none;
	color: var(--trio-foot-text); opacity: 1;
}
.tr-ft .tr-fcta--s b {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font: 700 15px/1.3 var(--trio-font);
	color: #fff;
}

.tr-ft .tr-ft__rule { height: 1px; background: linear-gradient(90deg, rgba(68, 138, 255, .7), rgba(255, 255, 255, .12) 40%); }

/* Link columns */
.tr-ft .tr-ft__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
	gap: 40px 36px;
	padding-top: 52px;
	padding-bottom: 40px;
}
.tr-ft .tr-ft__brand { display: flex; flex-direction: column; gap: 18px; }
.tr-ft .tr-ft__brand p { max-width: 320px; line-height: 1.65; }
.tr-ft .tr-ft__logo { display: inline-flex; align-self: flex-start; }
.tr-ft .tr-ft__logo img { display: block; height: 58px; width: auto; max-width: none; }

.tr-ft .tr-ft__soc { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-ft__soc a { width: 38px !important; height: 38px !important; }
.tr-ft .tr-ft__soc a {
	width: 42px; height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	transition: all .2s;
}
.tr-ft .tr-ft__soc a:hover { background: var(--trio-grad-acc); color: #fff; transform: translateY(-2px); }

.tr-ft .tr-ft__h {
	margin: 0 0 16px;
	font: 700 15px/1.3 var(--trio-font);
	letter-spacing: 0;
	color: #fff;
}
.tr-ft .tr-ft__col ul { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

.tr-ft .tr-flink {
	color: var(--trio-foot-text);
	padding-bottom: 2px;
	background-image: linear-gradient(var(--trio-sky), var(--trio-sky));
	background-size: 0 1.5px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size .25s, color .2s;
}
.tr-ft .tr-flink:hover { color: #fff; background-size: 100% 1.5px; }

.tr-ft .tr-off { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; line-height: 1.5; }
.tr-ft .tr-off .tr-ic { color: var(--trio-sky-2); margin-top: 2px; }
.tr-ft .tr-off b { display: block; color: #fff; font-weight: 700; }

.tr-ft .tr-ft__wm { line-height: 0; }
.tr-ft .tr-ft__wm svg { display: block; width: 72%; margin: 0 auto; }

/* Bottom bar */
.tr-ft .tr-ft__bottom { background: rgba(0, 0, 0, .22); }
.tr-ft .tr-ft__bottom .tr-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	justify-content: space-between;
	align-items: center;
	padding-top: 18px;
	padding-bottom: 18px;
	font-size: 13px;
}
.tr-ft .tr-ft__legal { display: flex; gap: 20px; align-items: center; }
.tr-ft .tr-totop {
	width: 40px; height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--trio-grad-acc);
	color: #fff;
}
.tr-ft .tr-totop:hover { color: #fff; transform: translateY(-2px); }

@media (max-width: 960px) {
	.tr-ft .tr-ft__cta { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.tr-ft .tr-ft__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
	.tr-wrap { padding: 0 16px; }

	.tr-ft .tr-ft__cta { padding-top: 40px; padding-bottom: 24px; gap: 18px; }
	.tr-ft .tr-ft__title { font-size: 28px; line-height: 1.1; margin: 12px 0 8px; }
	.tr-ft .tr-ft__lead { font-size: 15px; line-height: 1.55; }
	.tr-ft .tr-open { font-size: 12px; }

	.tr-ft .tr-fcta { padding: 12px 14px; border-radius: 14px; gap: 12px; }
	.tr-ft .tr-fcta__ic { width: 40px; height: 40px; border-radius: 12px; }
	.tr-ft .tr-fcta__big { font-size: 18px; }
	.tr-ft .tr-ft__pair { gap: 8px; margin-top: 8px; }
	.tr-ft .tr-fcta--s { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; }
	.tr-ft .tr-fcta--s .tr-fcta__ic { width: 34px; height: 34px; border-radius: 10px; }
	.tr-ft .tr-fcta--s b { font-size: 14px; }
	.tr-ft .tr-fcta--s small { font-size: 11px; }

	.tr-ft .tr-ft__grid { padding-top: 28px; padding-bottom: 20px; gap: 22px 16px; }
	.tr-ft .tr-ft__brand,
	.tr-ft .tr-ft__offices { grid-column: 1 / -1; }
	.tr-ft .tr-ft__brand { gap: 12px; }
	.tr-ft .tr-ft__brand p { font-size: 13.5px; }
	.tr-ft .tr-ft__logo img { height: 44px; }
	.tr-ft .tr-ft__h {
		margin-bottom: 10px;
		font-size: 13px;
		letter-spacing: .08em;
		text-transform: uppercase;
		color: var(--trio-sky-2);
	}
	.tr-ft .tr-ft__col ul { gap: 2px; }
	.tr-ft .tr-ft__col .tr-flink { display: inline-block; padding: 6px 0; font-size: 13.5px; }
	.tr-ft .tr-ft__offices { font-size: 13px; }
	.tr-ft .tr-ft__wm svg { width: 96%; }
	.tr-ft .tr-ft__bottom .tr-wrap { gap: 8px 14px; font-size: 12px; padding-top: 14px; padding-bottom: 16px; }
}
@media (max-width: 420px) {
	.tr-ft .tr-ft__pair { grid-template-columns: 1fr; }
}

/* ---------- 5. Floating WhatsApp button ---------- */
.tr-fab {
	position: fixed;
	right: max(20px, env(safe-area-inset-right, 0px));
	bottom: max(20px, env(safe-area-inset-bottom, 0px));
	z-index: 998;
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--trio-wa);
	color: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
	transition: transform .2s;
}
.tr-fab:hover { color: #fff; transform: scale(1.06); }
html.tr-menu-open .tr-fab { display: none; }
@media (max-width: 640px) {
	.tr-fab { width: 50px; height: 50px; right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
	.tr-fab .tr-ic { width: 23px; height: 23px; }
}

/* ---------- 6. Old page-embedded headers/footers ----------
   Older pages (v65-style Elementor HTML widgets) carry their own header,
   footer and floating buttons. When the theme header is on the page,
   hide those copies so only the theme header/footer show.
   ".tr-hd ~ *" = anything after the theme header, so pages on
   "Elementor Canvas" (no theme header) keep their own header. */
.tr-hd ~ * header.th,
.tr-hd ~ * .th-sp,
.tr-hd ~ * footer,
.tr-hd ~ * .fab {
	display: none !important;
}
/* Headers/floating buttons with other class names are found and hidden
   by main.js ("1b"). The theme's own footer (.tr-ft) is never a child of
   page content, so the "footer" rule above never touches it. */

/* ---------- 7. Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* v1.7.5 – keep footer legal links clear of the floating WhatsApp button */
@media (max-width: 1400px) { .tr-ft .tr-ft__bottom .tr-wrap { padding-right: 96px; } }
@media (max-width: 640px) { .tr-ft .tr-ft__bottom .tr-wrap { padding-right: 16px; padding-bottom: 80px; } }
