/* =========================================================
   Toronto Lux Epoxy — design system (Step 2)
   Tokens from the client spec (section 05). Contrast checked:
   ink/white 16.4, muted/white 6.3, gold/navy 7.8, white/blue 6.7,
   navy/gold 7.8, gold-dark/white 5.0. Never gold (#C9A45C) text on white (2.35).
   ========================================================= */
:root {
	--tlx-navy: #081529;
	--tlx-navy-deep: #040B17;
	--tlx-navy-2: #0E2140;          /* raised surface on navy */
	--tlx-gold: #C9A45C;
	--tlx-gold-soft: #E3C98F;
	--tlx-gold-dark: #7A5C22;       /* gold for text on light surfaces (5.7:1 on white, 5.3:1 on soft) */
	--tlx-blue: #1D4ED8;
	--tlx-blue-deep: #1739A6;
	--tlx-white: #FFFFFF;
	--tlx-soft: #F5F7FA;
	--tlx-line: #E3E8EF;
	--tlx-ink: #142033;
	--tlx-muted: #526174;
	--tlx-mist: #B8C2D3;            /* secondary text on navy */

	--tlx-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
	--tlx-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--tlx-radius: 10px;
	--tlx-radius-sm: 8px;
	--tlx-max: 1240px;
	--tlx-gutter: clamp(20px, 3vw, 32px);
	--tlx-section: clamp(32px, 5vw, 72px); /* was 56–108px; tightened 2026-11-10 (user request: less scrolling) */
	--tlx-ease: cubic-bezier(.22, .61, .36, 1);
	--tlx-fast: 170ms;
	--tlx-med: 220ms;
	--tlx-shadow: 0 1px 2px rgba(8, 21, 41, .06), 0 12px 32px -12px rgba(8, 21, 41, .18);
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--tlx-header-h, 96px) + 16px); }
html, body { overflow-x: clip; } /* guards 100vw breakouts against scrollbar-width overflow */
body {
	font-family: var(--tlx-sans);
	color: var(--tlx-ink);
	background: var(--tlx-white);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
/* Elementor's kit falls back to a generic sans-serif; keep a serif fallback while the web font loads. */
.elementor-widget-heading :is(h1, h2, h3).elementor-heading-title { font-family: var(--tlx-serif); }
h1, h2, h3, .tlx-serif {
	font-family: var(--tlx-serif);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; }
a { color: var(--tlx-blue); text-underline-offset: 3px; transition: color var(--tlx-fast) var(--tlx-ease); }
a:hover { color: var(--tlx-navy); }

:focus-visible { outline: 3px solid var(--tlx-blue); outline-offset: 3px; border-radius: 4px; }
.tlx-navy :focus-visible, .tlx-deep :focus-visible { outline-color: var(--tlx-gold); }

.tlx-skip {
	position: absolute; left: 12px; top: -60px; z-index: 10000;
	background: var(--tlx-gold); color: var(--tlx-navy); padding: 10px 16px;
	border-radius: var(--tlx-radius-sm); font-weight: 700; text-decoration: none;
}
.tlx-skip:focus { top: 12px; }

.tlx-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.tlx-wrap { max-width: var(--tlx-max); margin-inline: auto; padding-inline: var(--tlx-gutter); }
.tlx-measure { max-width: 68ch; }

/* ---------- Section surfaces (add class to Elementor container) ---------- */
.tlx-navy, .tlx-deep { color: var(--tlx-white); }
.tlx-navy { background-color: var(--tlx-navy); }
.tlx-deep { background-color: var(--tlx-navy-deep); }
.tlx-soft { background-color: var(--tlx-soft); }
.tlx-light { background-color: var(--tlx-white); }
.tlx-navy :is(h1, h2, h3, h4), .tlx-deep :is(h1, h2, h3, h4),
.tlx-navy .elementor-heading-title, .tlx-deep .elementor-heading-title { color: var(--tlx-white); }
.tlx-navy p, .tlx-deep p, .tlx-navy li, .tlx-deep li { color: var(--tlx-mist); }
/* QA (axe color-contrast): headings inside HTML widgets on navy must beat Elementor's kit heading colour. */
html .tlx-navy :is(h1, h2, h3, h4), html .tlx-deep :is(h1, h2, h3, h4) { color: #fff; }
/* QA (axe link-in-text-block): links inside running text are underlined, not distinguished by colour alone. */
.elementor-widget-text-editor p a:not(.tlx-textlink):not(.tlx-btn), .tlx-faq__a a, .tlx-legal a, .tlx-note a,
.tlx-footer__areas a, .tlx-check label a, .tlx-form .tlx-form__alt a, .tlx-thanks p a:not(.tlx-btn), .tlx-callout p a, .tlx-aside__card p a:not(.tlx-textlink) {
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
/* The quote-page privacy note sits in a text widget whose kit/widget link rule beats the list above. */
html body p.tlx-note a, html body .tlx-note p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tlx-navy a:not(.elementor-button):not(.tlx-btn), .tlx-deep a:not(.elementor-button):not(.tlx-btn) { color: var(--tlx-gold-soft); }
.tlx-navy a:not(.elementor-button):not(.tlx-btn):hover, .tlx-deep a:not(.elementor-button):not(.tlx-btn):hover { color: var(--tlx-white); }
.tlx-section { padding-block: var(--tlx-section); }

/* ---------- Eyebrow / rule / lead ---------- */
.tlx-eyebrow, .tlx-eyebrow .elementor-heading-title {
	font-family: var(--tlx-sans);
	font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--tlx-gold-dark);
	display: inline-flex; align-items: center; gap: 12px;
}
.tlx-eyebrow::before, .tlx-eyebrow .elementor-heading-title::before {
	content: ""; width: 28px; height: 1px; background: currentColor; opacity: .8;
}
/* On Elementor heading widgets the class sits on the wrapper: draw the dash only on the inner title. */
.elementor-widget.tlx-eyebrow { display: block; }
.elementor-widget.tlx-eyebrow::before { content: none; }
.tlx-navy .tlx-eyebrow, .tlx-deep .tlx-eyebrow,
.tlx-navy .tlx-eyebrow .elementor-heading-title, .tlx-deep .tlx-eyebrow .elementor-heading-title { color: var(--tlx-gold); }
.tlx-rule { height: 1px; border: 0; background: linear-gradient(90deg, var(--tlx-gold), rgba(201, 164, 92, 0)); max-width: 160px; margin: 24px 0; }
.tlx-lead, .tlx-lead p { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; }

/* ---------- Buttons ----------
   Elementor button widget: add class to the WIDGET (tlx-btn--gold / --ghost / --light).
   Hand-written links: <a class="tlx-btn tlx-btn--blue">. */
.tlx-btn, .elementor-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 14px 26px;
	font-family: var(--tlx-sans); font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
	border-radius: var(--tlx-radius-sm); border: 1px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background-color var(--tlx-fast) var(--tlx-ease), color var(--tlx-fast) var(--tlx-ease),
		border-color var(--tlx-fast) var(--tlx-ease), box-shadow var(--tlx-med) var(--tlx-ease), transform var(--tlx-med) var(--tlx-ease);
}
/* Specificity note: Elementor's kit sets `.elementor-kit-N a` (0,1,1) and Hello sets
   `.page-content a { underline }`, so hand-written buttons use a.tlx-btn.tlx-btn--x (0,2,1)
   and Elementor widgets use .elementor-widget.tlx-btn--x .elementor-button (0,3,0). */
a.tlx-btn, button.tlx-btn, .elementor-button { text-decoration: none; }
a.tlx-btn.tlx-btn--blue { background: var(--tlx-blue); color: #fff; }
a.tlx-btn.tlx-btn--blue:hover { background: var(--tlx-navy); color: #fff; }
a.tlx-btn.tlx-btn--gold, .elementor-widget.tlx-btn--gold .elementor-button { background: var(--tlx-gold); color: var(--tlx-navy); border-color: var(--tlx-gold); }
a.tlx-btn.tlx-btn--gold:hover, .elementor-widget.tlx-btn--gold .elementor-button:hover { background: var(--tlx-gold-soft); color: var(--tlx-navy); border-color: var(--tlx-gold-soft); box-shadow: 0 10px 28px -12px rgba(201, 164, 92, .65); }
a.tlx-btn.tlx-btn--ghost, .elementor-widget.tlx-btn--ghost .elementor-button { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
a.tlx-btn.tlx-btn--ghost:hover, .elementor-widget.tlx-btn--ghost .elementor-button:hover { border-color: var(--tlx-gold); color: var(--tlx-gold-soft); background: rgba(201, 164, 92, .06); }
a.tlx-btn.tlx-btn--light, .elementor-widget.tlx-btn--light .elementor-button { background: transparent; color: var(--tlx-navy); border-color: rgba(8, 21, 41, .25); }
a.tlx-btn.tlx-btn--light:hover, .elementor-widget.tlx-btn--light .elementor-button:hover { border-color: var(--tlx-navy); background: var(--tlx-navy); color: #fff; }
.tlx-btn .tlx-arrow, .elementor-button .tlx-arrow { transition: transform var(--tlx-fast) var(--tlx-ease); }
.tlx-btn:hover .tlx-arrow, .elementor-button:hover .tlx-arrow { transform: translateX(3px); }
.tlx-textlink { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Cards (subtle spotlight follows pointer; static without JS) ---------- */
.tlx-card {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--tlx-white); border: 1px solid var(--tlx-line); border-radius: var(--tlx-radius);
	padding: clamp(22px, 2.4vw, 32px);
	transition: border-color var(--tlx-med) var(--tlx-ease), box-shadow var(--tlx-med) var(--tlx-ease), transform var(--tlx-med) var(--tlx-ease);
}
.tlx-card::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(201, 164, 92, .14), transparent 60%);
	transition: opacity var(--tlx-med) var(--tlx-ease);
}
.tlx-card:hover { border-color: rgba(201, 164, 92, .55); box-shadow: var(--tlx-shadow); }
.tlx-card:hover::after { opacity: 1; }
.tlx-navy .tlx-card, .tlx-deep .tlx-card { background: var(--tlx-navy-2); border-color: rgba(255, 255, 255, .08); }

/* ---------- Media + honest labelling ---------- */
.tlx-media { position: relative; overflow: hidden; border-radius: var(--tlx-radius); background: var(--tlx-navy-2); }
.tlx-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--tlx-ease); }
.tlx-media:hover img { transform: scale(1.02); }
.tlx-caption {
	display: flex; align-items: center; gap: 8px; margin-top: 10px;
	font-size: 13px; line-height: 1.4; color: var(--tlx-muted);
}
.tlx-caption::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tlx-gold); flex: none; }
.tlx-navy .tlx-caption, .tlx-deep .tlx-caption { color: var(--tlx-mist); }

/* Logo plate for light surfaces (logo artwork is designed for dark backgrounds). */
.tlx-logo-plate { display: inline-block; background: var(--tlx-navy); border-radius: var(--tlx-radius); padding: 14px 18px; }

/* ---------- Step 9: refined motion (all hover/one-time; nothing perpetual) ---------- */

/* Calm cross-fade between pages in browsers that support cross-document view transitions. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: var(--tlx-ease); }
.tlx-header { view-transition-name: tlx-header; } /* header stays put while content fades */

/* ---------- Liquid-metal buttons (all site buttons, user request 2026-11-11) ----------
   Vanilla port of the 21st.dev "LiquidMetalButton" (React + @paper-design/shaders). Instead of one WebGL context per
   button, the flowing chrome ring is two animated conic gradients on the border-box (CSS @property angle), with the
   variant's fill on the padding-box. Pill shape, layered depth shadow, press-in, click ripple, and the flow speeds up
   on hover and kicks on click (tlx.js adjusts playbackRate), matching the component's 0.6 → 1 → 2.4 speeds.
   Brand fills are kept per variant (gold / blue / navy ghost / light). Static ring under reduced motion. */
@property --lm-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes tlx-lm-flow { to { --lm-a: 360deg; } }
@keyframes tlx-lm-ripple { 0% { transform: translate(-50%, -50%) scale(0); opacity: .6; } 100% { transform: translate(-50%, -50%) scale(4); opacity: 0; } }
html body :is(a.tlx-btn, button.tlx-btn, .elementor-button, .tlx-mbar a) {
	--lm-fill: linear-gradient(180deg, #202020, #000);
	--lm-ring:
		conic-gradient(from calc(var(--lm-a) * -1.7) at 32% 60%, transparent 0deg, rgba(227, 201, 143, .55) 50deg, transparent 105deg, rgba(255, 255, 255, .75) 190deg, transparent 250deg, rgba(120, 124, 132, .5) 310deg, transparent 360deg),
		conic-gradient(from var(--lm-a), #f6f6f4, #85888e 9%, #ffffff 17%, #4f535a 27%, #ebe7dc 37%, #979aa0 47%, #ffffff 56%, #656970 67%, #ddd8ca 77%, #8a8d93 87%, #f6f6f4);
	position: relative; isolation: isolate; overflow: hidden;
	border: 2px solid transparent !important; border-radius: 999px !important;
	background: var(--lm-fill) padding-box, var(--lm-ring) border-box !important; background-origin: border-box;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .28), 0 20px 12px -14px rgba(0, 0, 0, .10), 0 9px 9px -6px rgba(0, 0, 0, .14), 0 2px 5px rgba(0, 0, 0, .16);
	animation: tlx-lm-flow 7s linear infinite;
	transition: transform 600ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 150ms cubic-bezier(.4, 0, .2, 1), color var(--tlx-fast) var(--tlx-ease);
	-webkit-tap-highlight-color: transparent;
}
html body :is(a.tlx-btn, button.tlx-btn, .elementor-button, .tlx-mbar a):hover {
	transform: translateY(-1px);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .34), 0 12px 6px -6px rgba(0, 0, 0, .05), 0 8px 5px -3px rgba(0, 0, 0, .10), 0 4px 4px rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .2);
}
html body :is(a.tlx-btn, button.tlx-btn, .elementor-button, .tlx-mbar a):active {
	transform: translateY(1px) scale(.98);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, .35), inset 0 1px 2px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .3);
}
.tlx-lm-ripple { position: absolute; z-index: 2; width: 20px; height: 20px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, 0) 70%); animation: tlx-lm-ripple 600ms ease-out forwards; }
/* Variant fills (the metallic ring is shared). */
html body a.tlx-btn.tlx-btn--gold, html body .elementor-widget.tlx-btn--gold .elementor-button, html body .tlx-mbar a.tlx-mbar__quote { --lm-fill: linear-gradient(180deg, #DDBD79 0%, #C9A45C 55%, #B48F48 100%); color: var(--tlx-navy); }
html body a.tlx-btn.tlx-btn--gold:hover, html body .elementor-widget.tlx-btn--gold .elementor-button:hover, html body .tlx-mbar a.tlx-mbar__quote:hover { --lm-fill: linear-gradient(180deg, #ECD6A4 0%, #E3C98F 55%, #CDAE6E 100%); color: var(--tlx-navy); }
html body a.tlx-btn.tlx-btn--blue, html body button.tlx-btn.tlx-btn--blue, html body .elementor-widget.tlx-btn--blue .elementor-button { --lm-fill: linear-gradient(180deg, #2C5DE2 0%, #1D4ED8 60%, #1A44BE 100%); color: #fff; }
html body a.tlx-btn.tlx-btn--blue:hover, html body button.tlx-btn.tlx-btn--blue:hover, html body .elementor-widget.tlx-btn--blue .elementor-button:hover { --lm-fill: linear-gradient(180deg, #1A3A7A 0%, #0E2140 60%, #081529 100%); color: #fff; }
html body a.tlx-btn.tlx-btn--ghost, html body .elementor-widget.tlx-btn--ghost .elementor-button, html body .tlx-mbar a.tlx-mbar__call { --lm-fill: linear-gradient(180deg, #16294A 0%, #0B1A33 60%, #081529 100%); color: #fff; }
html body a.tlx-btn.tlx-btn--ghost:hover, html body .elementor-widget.tlx-btn--ghost .elementor-button:hover, html body .tlx-mbar a.tlx-mbar__call:hover { --lm-fill: linear-gradient(180deg, #1D3560 0%, #0E2140 60%, #0B1A33 100%); color: var(--tlx-gold-soft); }
html body a.tlx-btn.tlx-btn--light, html body .elementor-widget.tlx-btn--light .elementor-button { --lm-fill: linear-gradient(180deg, #FFFFFF 0%, #F3F5F8 100%); color: var(--tlx-navy); }
html body a.tlx-btn.tlx-btn--light:hover, html body .elementor-widget.tlx-btn--light .elementor-button:hover { --lm-fill: linear-gradient(180deg, #13284A 0%, #081529 100%); color: #fff; }

/* Eyebrow dash draws in once when its section is revealed. */
html.tlx-js .tlx-reveal .tlx-eyebrow::before, html.tlx-js .tlx-reveal .tlx-eyebrow .elementor-heading-title::before { transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--tlx-ease) 150ms; }
html.tlx-js .tlx-reveal.is-in .tlx-eyebrow::before, html.tlx-js .tlx-reveal.is-in .tlx-eyebrow .elementor-heading-title::before { transform: scaleX(1); }

/* Reveal (one-time, subtle; content visible without JS) */
html.tlx-js .tlx-reveal { opacity: 0; transform: translateY(10px); transition: opacity 420ms var(--tlx-ease), transform 420ms var(--tlx-ease); transition-delay: var(--d, 0ms); }
html.tlx-js .tlx-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	html.tlx-js .tlx-reveal { opacity: 1; transform: none; }
	html.tlx-js .tlx-reveal .tlx-eyebrow::before, html.tlx-js .tlx-reveal .tlx-eyebrow .elementor-heading-title::before { transform: none; transition: none; }
	html body :is(a.tlx-btn, button.tlx-btn, .elementor-button, .tlx-mbar a) { animation: none; }
	html body :is(a.tlx-btn, button.tlx-btn, .elementor-button, .tlx-mbar a):is(:hover, :active) { transform: none; }
	.tlx-lm-ripple { display: none; }
	@view-transition { navigation: none; }
}

/* ---------- Style guide (internal review page only) ---------- */
.tlx-sg { padding-block: 48px; }
.tlx-sg-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.tlx-sg-swatch { border-radius: var(--tlx-radius); overflow: hidden; border: 1px solid var(--tlx-line); font-size: 13px; }
.tlx-sg-swatch div:first-child { height: 84px; }
.tlx-sg-swatch div:last-child { padding: 10px 12px; background: #fff; color: var(--tlx-ink); }
.tlx-sg-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.tlx-sg h2 { margin: 56px 0 18px; }
.tlx-sg-panel { border-radius: var(--tlx-radius); padding: 36px; }
