/* The Fleet Method theme. Palette is the client's; type is Newsreader (display) + Barlow (text/UI). */

:root {
	--tfm-green: #23483F; --tfm-green-dark: #1A3630; --tfm-cream: #F7F5EE; --tfm-paper: #FCFBF7;
	--tfm-charcoal: #343A39; --tfm-muted: #5B6462; --tfm-sage: #B7C7BF; --tfm-sage-light: #E4EBE6; --tfm-line: #D9DDD5;
	--tfm-amber: #8A5A0B; --tfm-amber-bg: #FBF1DC; --tfm-rose: #7A2E27; --tfm-rose-bg: #F4E4E1;
	--tfm-serif: "Newsreader", "Iowan Old Style", Charter, Georgia, serif;
	--tfm-sans: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--tfm-radius: 8px; --tfm-radius-lg: 14px; --tfm-white: #FFFFFF; --tfm-header-h: 84px; --tfm-gutter: clamp(1rem, 4vw, 2.5rem);
	--tfm-section: clamp(3.75rem, 8vw, 7rem);
	--tfm-shadow: 0 18px 40px -24px rgba(26, 54, 48, .45);
}

html { scrollbar-color: var(--tfm-sage) transparent; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
html.tfm-menu-open { overflow: hidden; }
body { margin: 0; background: var(--tfm-white); color: var(--tfm-charcoal); font-family: var(--tfm-sans); font-size: 1.0625rem; line-height: 1.6; caret-color: var(--tfm-green); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "kern" 1; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
::selection { background: var(--tfm-sage); color: var(--tfm-green-dark); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--tfm-sage); border-radius: 999px; border: 2px solid var(--tfm-cream); }
::-webkit-scrollbar-track { background: transparent; }

h1, h2, h3, h4, h5, h6 { font-family: var(--tfm-serif); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; color: var(--tfm-green-dark); margin: 0 0 .5em; text-wrap: balance; font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(2.75rem, 5.5vw, 4.75rem); line-height: 1.02; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.06; }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -.015em; }
h4 { font-size: clamp(1.125rem, 1.5vw, 1.3rem); font-family: var(--tfm-sans); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1.1rem; text-wrap: pretty; }
a { color: var(--tfm-green); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--tfm-green-dark); }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--tfm-green); outline-offset: 3px; border-radius: 2px; }
.tfm-dark :focus-visible, .tfm-footer :focus-visible, .tfm-cta-band :focus-visible { outline-color: var(--tfm-cream); }
[id] { scroll-margin-top: calc(var(--tfm-header-h) + 1.5rem); }
hr.tfm-rule { border: 0; border-top: 1px solid var(--tfm-line); margin: 2rem 0; }
table { font-variant-numeric: tabular-nums; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; left: 1rem; top: 1rem; z-index: 1000; width: auto; height: auto; clip: auto; margin: 0; padding: .75rem 1rem; background: var(--tfm-green); color: var(--tfm-cream); border-radius: var(--tfm-radius); }

.tfm-container { width: min(1200px, 100% - 2 * var(--tfm-gutter)); margin-inline: auto; }
.tfm-container--narrow { max-width: 70ch; }
.tfm-page, .tfm-archive, .tfm-404 { padding: var(--tfm-section) 0; }
.tfm-page-head { margin-bottom: 2.25rem; }
.tfm-page-head h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
.tfm-prose { max-width: 68ch; }
.tfm-prose > * + * { margin-top: 1.1rem; }
.tfm-prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2.75rem; }
.tfm-prose h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); margin-top: 2rem; }
.tfm-prose ul, .tfm-prose ol { padding-left: 1.25rem; }
.tfm-prose li { margin-bottom: .5rem; }
.tfm-prose blockquote { margin: 1.75rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 1px solid var(--tfm-sage); font-family: var(--tfm-serif); font-size: 1.35rem; line-height: 1.4; color: var(--tfm-green-dark); }
.tfm-prose img { border-radius: var(--tfm-radius); }
.tfm-prose figcaption { font-size: .875rem; color: var(--tfm-muted); }
.tfm-list-item { padding: 1.5rem 0; border-bottom: 1px solid var(--tfm-line); }
.tfm-list-item h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.tfm-list-item a { text-decoration: none; }

/* ---------- Text roles (also CSS classes on Elementor widgets) ---------- */
.tfm-lead, .tfm-lead .elementor-widget-container, .tfm-lead p { font-family: var(--tfm-serif); font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.45; color: var(--tfm-charcoal); font-variation-settings: "opsz" 20; }
.tfm-dark .tfm-lead, .tfm-dark .tfm-lead p, .tfm-dark .tfm-lead .elementor-widget-container, .tfm-cta-band .tfm-lead { color: var(--tfm-sage-light); }
.tfm-muted, .tfm-muted .elementor-widget-container { color: var(--tfm-muted); }
.tfm-small, .tfm-small .elementor-widget-container { font-size: .9375rem; }
.tfm-x-small, .tfm-x-small .elementor-widget-container { font-size: .8125rem; }
.tfm-meta { font-size: .875rem; color: var(--tfm-muted); }
.tfm-meta a { color: inherit; }

/* Large numerals for genuine sequences (the four steps, how an engagement runs). */
.tfm-step-num, .tfm-step-num .elementor-heading-title { font-family: var(--tfm-serif); font-weight: 400; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.02em; color: var(--tfm-sage); margin: 0 0 .5rem; font-variant-numeric: lining-nums; }
.tfm-step-num.elementor-element { margin: 0; }
.tfm-step-num--light .elementor-heading-title { color: var(--tfm-sage); }
.tfm-step-num--ink .elementor-heading-title, .tfm-step-num--ink { color: var(--tfm-green); }

/* Text links (no arrows, no chrome). */
a.tfm-text-link, .tfm-text-link:not(.elementor-element) a { font-weight: 500; color: var(--tfm-green); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a.tfm-text-link:hover, .tfm-text-link:not(.elementor-element) a:hover { color: var(--tfm-green-dark); text-decoration-thickness: 2px; }
.tfm-text-link.elementor-element .elementor-button { background: none !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; color: var(--tfm-green) !important; font-size: 1rem !important; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tfm-text-link.elementor-element .elementor-button:hover { color: var(--tfm-green-dark) !important; text-decoration-thickness: 2px; }
.tfm-dark .tfm-text-link.elementor-element .elementor-button, .tfm-dark a.tfm-text-link { color: var(--tfm-cream) !important; }

/* ---------- Buttons ---------- */
.tfm-btn, .wp-element-button, .wp-block-button__link, .tfm-form button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; background: var(--tfm-green); color: var(--tfm-cream); border: 1px solid var(--tfm-green);
	border-radius: var(--tfm-radius); font-family: var(--tfm-sans); font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: .005em; text-decoration: none; cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.tfm-btn:hover, .wp-element-button:hover, .tfm-form button[type="submit"]:hover { background: var(--tfm-green-dark); border-color: var(--tfm-green-dark); color: #fff; }
.tfm-btn:active { transform: translateY(1px); }
.tfm-btn--outline { background: transparent; color: var(--tfm-green); }
.tfm-btn--outline:hover { background: var(--tfm-green); color: var(--tfm-cream); }
.tfm-btn--light { background: var(--tfm-cream); color: var(--tfm-green-dark); border-color: var(--tfm-cream); }
.tfm-btn--light:hover { background: #fff; border-color: #fff; color: var(--tfm-green-dark); }
.tfm-btn--ghost { background: transparent; color: var(--tfm-cream); border-color: rgba(183,199,191,.6); }
.tfm-btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: var(--tfm-cream); }
.tfm-btn--sm { padding: .55rem .95rem; font-size: .9rem; }
.tfm-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Cards, lists, photos ---------- */
.tfm-card { background: var(--tfm-white); border: 1px solid var(--tfm-line); border-radius: var(--tfm-radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.tfm-el-card { transition: border-color .2s ease; }
.tfm-el-card:hover { border-color: var(--tfm-sage) !important; }
.tfm-check-list, .tfm-plain-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.tfm-check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .65rem; }
.tfm-check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .85rem; height: .45rem; border-left: 1.5px solid var(--tfm-green); border-bottom: 1.5px solid var(--tfm-green); transform: rotate(-45deg); }
.tfm-dark .tfm-check-list li::before { border-color: var(--tfm-sage); }
.tfm-plain-list li { margin-bottom: .5rem; }
.tfm-dark { background: var(--tfm-green-dark); color: var(--tfm-sage-light); }
.tfm-dark h1, .tfm-dark h2, .tfm-dark h3 { color: var(--tfm-cream); }
.tfm-dark a { color: var(--tfm-cream); }
/* Photographs take the brand's green: one consistent treatment regardless of source. */
.tfm-photo, .tfm-photo .elementor-widget-container { border-radius: var(--tfm-radius-lg); overflow: hidden; }
.tfm-photo img { display: block; width: 100%; border-radius: var(--tfm-radius-lg); }
.tfm-photo--card img, .tfm-photo--card .elementor-widget-container img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--tfm-radius-lg) var(--tfm-radius-lg) 0 0; }
.tfm-photo--portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.tfm-photo--wide img { aspect-ratio: 16 / 10; object-fit: cover; }
/* Founder portrait stays in natural colour. */
.tfm-portrait img, .tfm-portrait .elementor-widget-container img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: var(--tfm-radius-lg); }

/* ---------- Header ---------- */
.tfm-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--tfm-line); }
.admin-bar .tfm-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .tfm-header { top: 0; } }
.tfm-header__inner { min-height: var(--tfm-header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.tfm-brand { display: flex; align-items: center; min-width: 0; }
.tfm-brand img, .custom-logo { max-height: 56px; width: auto; display: block; }
.tfm-site-title { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--tfm-serif); font-weight: 500; font-size: 1.45rem; letter-spacing: -.02em; color: var(--tfm-green-dark); text-decoration: none; white-space: nowrap; }
.tfm-mark { width: 28px; height: 28px; flex: none; background: url("../img/mark.svg") center / contain no-repeat; }
.tfm-nav { display: flex; align-items: center; gap: 1.75rem; }
.tfm-menu { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.tfm-menu li { position: relative; }
.tfm-menu a { display: inline-block; padding: .35rem 0; font-size: 1rem; font-weight: 500; color: var(--tfm-charcoal); text-decoration: none; border-bottom: 1.5px solid transparent; }
.tfm-menu a:hover, .tfm-menu .current-menu-item > a, .tfm-menu .current-menu-ancestor > a, .tfm-menu .current_page_parent > a { color: var(--tfm-green-dark); border-bottom-color: var(--tfm-green); }
.tfm-menu .sub-menu { display: none; position: absolute; top: 100%; left: -1rem; min-width: 14rem; margin: 0; padding: .5rem 0; list-style: none; background: var(--tfm-paper); border: 1px solid var(--tfm-line); border-radius: var(--tfm-radius); box-shadow: var(--tfm-shadow); }
.tfm-menu:not(.tfm-menu--js) li:hover > .sub-menu, .tfm-menu:not(.tfm-menu--js) li:focus-within > .sub-menu { display: block; }
.tfm-menu .sub-menu a { display: block; padding: .5rem 1rem; border: 0; }
.tfm-nav__utility { display: flex; align-items: center; gap: 1rem; }
.tfm-nav__portal { font-size: .95rem; font-weight: 500; color: var(--tfm-green); text-decoration: none; border: 1px solid var(--tfm-sage); border-radius: var(--tfm-radius); padding: .5rem .85rem; white-space: nowrap; }
.tfm-nav__portal:hover { border-color: var(--tfm-green); }
.tfm-nav__cta { padding: .65rem 1.05rem; font-size: .95rem; white-space: nowrap; }
@media (max-width: 1180px) { .tfm-nav__cta { display: none; } }
.tfm-menu-toggle { display: none; align-items: center; gap: .6rem; background: none; border: 1px solid var(--tfm-sage); border-radius: var(--tfm-radius); padding: .55rem .85rem; font: inherit; font-size: .95rem; font-weight: 500; color: var(--tfm-green-dark); cursor: pointer; }
.tfm-menu-toggle__bars { position: relative; width: 18px; height: 1.5px; background: currentColor; display: block; }
.tfm-menu-toggle__bars::before, .tfm-menu-toggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .2s ease; }
.tfm-menu-toggle__bars::before { top: -6px; } .tfm-menu-toggle__bars::after { top: 6px; }
.is-open .tfm-menu-toggle__bars { background: transparent; }
.is-open .tfm-menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .tfm-menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
	.tfm-menu-toggle { display: inline-flex; }
	.tfm-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--tfm-white); border-bottom: 1px solid var(--tfm-line); padding: 1rem var(--tfm-gutter) 1.5rem; max-height: calc(100vh - var(--tfm-header-h)); max-height: calc(100dvh - var(--tfm-header-h)); overflow: auto; }
	.is-open .tfm-nav { display: flex; }
	.tfm-menu { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
	.tfm-menu a { display: block; padding: .9rem 0; font-size: 1.2rem; font-family: var(--tfm-serif); font-weight: 500; border-bottom: 1px solid var(--tfm-line); }
	.tfm-menu .current-menu-item > a { border-bottom-color: var(--tfm-line); color: var(--tfm-green); }
	.tfm-menu .sub-menu { position: static; min-width: 0; border: 0; box-shadow: none; background: none; padding: 0 0 0 1rem; }
	.tfm-nav__utility { flex-direction: column; align-items: stretch; gap: .75rem; margin-top: 1.25rem; }
	.tfm-nav__portal, .tfm-nav__cta { display: flex; justify-content: center; }
}

/* ---------- Footer ---------- */
.tfm-footer { background: var(--tfm-green-dark); color: var(--tfm-sage-light); padding: clamp(2.75rem, 5vw, 4.5rem) 0 1.5rem; font-size: .9375rem; }
.tfm-footer a { color: var(--tfm-cream); text-decoration: none; }
.tfm-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tfm-footer .tfm-site-title { color: var(--tfm-cream); }
.tfm-footer .tfm-mark { filter: brightness(1.35); }
.tfm-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.75rem, 3.5vw, 3rem); }
.tfm-footer__brand p { margin: 1rem 0; max-width: 34ch; }
.tfm-footer__brand .tfm-btn { margin-top: .5rem; }
.tfm-footer h2 { font-family: var(--tfm-sans); font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--tfm-cream); margin: 0 0 1rem; }
.tfm-footer-menu, .tfm-contact-list { list-style: none; margin: 0; padding: 0; }
.tfm-footer-menu li, .tfm-contact-list li { margin: 0 0 .6rem; }
.tfm-contact-label { display: inline-block; min-width: 3.5rem; font-size: .9rem; }
.tfm-footer .tfm-contact-label { color: var(--tfm-sage); }
.tfm-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(183,199,191,.3); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; color: var(--tfm-sage); }
.tfm-footer__bottom p { margin: 0; }
@media (max-width: 900px) { .tfm-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tfm-footer__grid { grid-template-columns: 1fr; } }

/* ---------- CTA band (theme templates) ---------- */
.tfm-cta-band { background: var(--tfm-green); color: var(--tfm-cream); padding: var(--tfm-section) 0; }
.tfm-cta-band__grid { display: grid; grid-template-columns: 7fr 4fr; gap: 3rem; align-items: end; }
.tfm-cta-band h2 { color: var(--tfm-cream); max-width: 18ch; }
.tfm-cta-band .tfm-lead { max-width: 46ch; }
.tfm-cta-band ol { margin: 0; padding-left: 1.2rem; color: var(--tfm-sage-light); }
.tfm-cta-band ol li { margin-bottom: .5rem; }
.tfm-cta-band__aside h3 { color: var(--tfm-cream); font-family: var(--tfm-sans); font-weight: 600; font-size: 1rem; letter-spacing: 0; margin-bottom: .75rem; }
@media (max-width: 800px) { .tfm-cta-band__grid { grid-template-columns: 1fr; } }

/* ---------- Resources ---------- */
.tfm-archive-head { max-width: 60ch; margin-bottom: 2.5rem; }
.tfm-archive-head h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
.tfm-back { font-size: .95rem; }
.tfm-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.tfm-chips a { display: inline-block; padding: .5rem .9rem; border: 1px solid var(--tfm-line); border-radius: 999px; font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--tfm-charcoal); background: var(--tfm-paper); }
.tfm-chips a:hover { border-color: var(--tfm-green); color: var(--tfm-green-dark); }
.tfm-chips a[aria-current="page"] { background: var(--tfm-green); border-color: var(--tfm-green); color: var(--tfm-cream); }
.tfm-resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: clamp(1.25rem, 2vw, 2rem); }
.tfm-resource-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.tfm-resource-card { display: flex; flex-direction: column; gap: .6rem; padding: 0; background: transparent; border: 0; border-radius: 0; }
.tfm-resource-card__image { display: block; margin-bottom: .75rem; }
.tfm-resource-card__image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--tfm-radius-lg); }
.tfm-resource-card__title { font-size: 1.4rem; margin: 0; line-height: 1.2; }
.tfm-resource-card__title a { color: inherit; text-decoration: none; }
.tfm-resource-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tfm-resource-card__excerpt { flex: 1; font-size: .95rem; color: var(--tfm-muted); margin: 0; }
.tfm-resource-card__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .875rem; color: var(--tfm-muted); margin-top: .25rem; }
.tfm-resource-card__meta a { color: inherit; text-decoration: none; }
.tfm-resource-meta { font-size: .9rem; color: var(--tfm-muted); }
.tfm-resource-meta a { text-decoration: none; color: inherit; }
.tfm-resource__image { margin: 0 0 2rem; }
.tfm-resource__back { margin-top: 2.5rem; }
.tfm-source-note { margin-top: 2.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--tfm-line); border-radius: var(--tfm-radius); background: var(--tfm-paper); font-size: .95rem; }
.tfm-source-note p { margin: 0 0 .35rem; }
.tfm-source-note p:last-child { margin: 0; }
.tfm-pagination { margin-top: 2.5rem; }
.tfm-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tfm-pagination .page-numbers { display: inline-block; padding: .5rem .85rem; border: 1px solid var(--tfm-line); border-radius: var(--tfm-radius); text-decoration: none; font-size: .9rem; }
.tfm-pagination .page-numbers.current { background: var(--tfm-green); color: var(--tfm-cream); border-color: var(--tfm-green); }
.tfm-pagination .screen-reader-text { display: none; }

/* ---------- FAQ ---------- */
.tfm-faq__item { border-bottom: 1px solid var(--tfm-line); padding: 1.1rem 0; }
.tfm-faq__item summary { cursor: pointer; font-family: var(--tfm-serif); font-size: 1.25rem; color: var(--tfm-green-dark); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.tfm-faq__item summary::-webkit-details-marker { display: none; }
.tfm-faq__item summary::after { content: ""; flex: none; width: .6rem; height: .6rem; border-right: 1.5px solid var(--tfm-green); border-bottom: 1.5px solid var(--tfm-green); transform: rotate(45deg) translateY(-.2rem); transition: transform .2s ease; }
.tfm-faq__item[open] summary::after { transform: rotate(-135deg) translateY(-.1rem); }
.tfm-faq__answer { padding-top: .75rem; color: var(--tfm-muted); max-width: 65ch; }
.tfm-faq__answer p:last-child { margin: 0; }

/* ---------- Misc ---------- */
.tfm-draft-notice { border: 1px dashed var(--tfm-amber); background: var(--tfm-amber-bg); color: var(--tfm-amber); padding: 1rem 1.25rem; border-radius: var(--tfm-radius); font-size: .95rem; margin-bottom: 1.5rem; }
.tfm-hero--split { background: linear-gradient(180deg, #EEF3EF 0%, #FFFFFF 100%); }
.tfm-hero--split .tfm-h-display .elementor-heading-title { max-width: 14ch; }
.tfm-media-card { position: relative; overflow: hidden; background-size: cover !important; background-position: center !important; box-shadow: 0 30px 60px -30px rgba(26,54,48,.45); }
.tfm-media-card .elementor-background-video-container { opacity: 1; }
.tfm-hero-sheet { position: relative; z-index: 2; box-shadow: 0 18px 40px -24px rgba(26,54,48,.35); border: 1px solid var(--tfm-line); }
.tfm-hero-sheet__title .elementor-heading-title { font-size: 1.05rem; }
.tfm-strip { border-bottom: 1px solid var(--tfm-line); }
.tfm-strip__item { border-left: 1px solid var(--tfm-line); padding-left: 1.5rem !important; }
.tfm-strip__item:first-child { border-left: 0; padding-left: 0 !important; }
.tfm-strip .tfm-step-num .elementor-heading-title { font-size: 1.6rem; color: var(--tfm-green); }
.tfm-number .elementor-heading-title { font-family: var(--tfm-serif); font-weight: 500; font-size: clamp(2.75rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -.03em; color: var(--tfm-green); font-variant-numeric: lining-nums; }
.tfm-number__item { border-left: 1px solid var(--tfm-line); padding-left: 2rem !important; }
.tfm-number__item:first-child { border-left: 0; padding-left: 0 !important; }
.tfm-service-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden; }
.tfm-service-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(26,54,48,.4); border-color: var(--tfm-sage) !important; }
.tfm-service-card > .elementor-widget-image { width: 100%; }
.tfm-service-card > .elementor-element:not(.elementor-widget-image) { padding-left: 1.4rem; padding-right: 1.4rem; }
.tfm-service-card .tfm-h-l .elementor-heading-title { margin-top: .5rem; }
@media (max-width: 767px) { .tfm-strip__item, .tfm-number__item { border-left: 0; padding-left: 0 !important; } .tfm-strip__item + .tfm-strip__item { border-top: 1px solid var(--tfm-line); padding-top: 1.25rem !important; } }
.tfm-sheet { box-shadow: 0 40px 70px -40px rgba(26,54,48,.6); }
.tfm-sheet .tfm-sheet-row { border-top: 1px solid rgba(183,199,191,.35); }
.tfm-sheet .tfm-sheet-row:last-of-type { border-bottom: 1px solid rgba(183,199,191,.35); }
.tfm-sheet-row .elementor-widget-text-editor p { margin: 0; }
.tfm-sheet-row .tfm-step-num .elementor-heading-title { font-size: 1.75rem; color: var(--tfm-sage); }
.tfm-ledger-row { border-top: 1px solid var(--tfm-line); transition: background .15s ease; }
.tfm-ledger-row:last-of-type { border-bottom: 1px solid var(--tfm-line); }
.tfm-ledger-row:hover { background: var(--tfm-cream); }

/* ---------- Page headers (light) ---------- */
.tfm-page-hero-el, .tfm-page-hero { background: linear-gradient(180deg, #EEF3EF 0%, #FFFFFF 100%); border-bottom: 1px solid var(--tfm-line); }
.tfm-page-hero { padding: clamp(2rem, 5vw, 4rem) 0; }
.tfm-page-hero__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.tfm-page-hero--text .tfm-page-hero__inner { grid-template-columns: minmax(0, 1fr); }
.tfm-page-hero h1 { color: var(--tfm-green-dark); font-size: clamp(2.25rem, 4vw, 3.25rem); max-width: 18ch; margin-bottom: .5rem; }
.tfm-page-hero .tfm-lead { color: var(--tfm-charcoal); max-width: 52ch; margin-bottom: .75rem; }
.tfm-page-hero__crumb { font-size: .9rem; color: var(--tfm-muted); margin: 0 0 1rem; }
.tfm-page-hero__crumb a { color: var(--tfm-muted); text-decoration: none; }
.tfm-page-hero__crumb a:hover { color: var(--tfm-green-dark); text-decoration: underline; }
.tfm-page-hero__media { border-radius: var(--tfm-radius-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(26,54,48,.45); aspect-ratio: 4 / 3; }
.tfm-page-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tfm-page-hero .tfm-chips { margin-top: 1rem; }
.tfm-page-hero .tfm-resource-meta { color: var(--tfm-muted); }
@media (max-width: 860px) { .tfm-page-hero__inner { grid-template-columns: minmax(0, 1fr); } .tfm-page-hero__media { aspect-ratio: 16 / 9; } }
.tfm-page.tfm-page--with-hero, .tfm-archive.tfm-archive--with-hero { padding-top: clamp(2.5rem, 5vw, 4rem); }
.tfm-section-media > .elementor-background-overlay { opacity: .9 !important; }
.tfm-media-card .elementor-background-video-container video, .tfm-media-card .elementor-background-video-container iframe { filter: saturate(.95); }
@media (prefers-reduced-motion: reduce) { .elementor-background-video-container { display: none !important; } }

/* ---------- Elementor refinements ---------- */
.elementor-widget-heading .elementor-heading-title { line-height: 1.1; }
.elementor-widget-heading h1.elementor-heading-title { line-height: 1.02; }
.elementor-widget-heading h3.elementor-heading-title { line-height: 1.2; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-text-editor ul, .elementor-widget-text-editor ol { padding-left: 1.25rem; }
.elementor-widget-text-editor { max-width: 68ch; }
.elementor-button { font-family: var(--tfm-sans); font-weight: 600; letter-spacing: .005em; }
.elementor-widget-icon-list .elementor-icon-list-text { color: inherit; }
.e-con.tfm-dark .elementor-widget-text-editor { color: var(--tfm-sage-light); }
.tfm-h-display .elementor-heading-title { font-size: clamp(2.75rem, 5.5vw, 4.75rem); line-height: 1.02; letter-spacing: -.03em; }
.tfm-h-xxl .elementor-heading-title { font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.06; }
.tfm-h-xl .elementor-heading-title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; }
.tfm-h-l .elementor-heading-title { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.25; }
.tfm-h-sans .elementor-heading-title { font-family: var(--tfm-sans); font-weight: 600; letter-spacing: 0; }
.tfm-elementor-page .site-main > .elementor { width: 100%; }

/* Guard against page-builder "a { color }" rules of equal specificity loaded later. */
body .tfm-btn, body .tfm-form button[type="submit"] { color: var(--tfm-cream); }
body .tfm-btn--outline { color: var(--tfm-green); }
body .tfm-btn--outline:hover, body .tfm-btn:hover { color: var(--tfm-cream); }
body .tfm-btn--ghost { color: var(--tfm-cream); }
body .tfm-footer a:not(.tfm-btn), body .tfm-dark a:not(.tfm-btn), body .tfm-cta-band a:not(.tfm-btn) { color: var(--tfm-cream); }
body a.tfm-btn--light, body a.tfm-btn--light:hover { color: var(--tfm-green-dark); }
body .tfm-nav__portal { color: var(--tfm-green); }
body .tfm-menu a { color: var(--tfm-charcoal); }
body .tfm-menu a:hover, body .tfm-menu .current-menu-item > a { color: var(--tfm-green-dark); }

@media print {
	.tfm-header, .tfm-footer, .tfm-cta-band, #tfm-consent, .tfm-mobile-cta { display: none !important; }
	body { background: #fff; }
	/* Fade-ins wait for scrolling, which never happens on paper, so print everything as it finally looks. */
	.tfm-js .tfm-reveal, .tfm-js .tfm-rail-widget:not(.is-in) .tfm-rail li, .tfm-js .tfm-stat .tfm-number .elementor-heading-title, .tfm-js .tfm-stat > .elementor-widget-text-editor { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
	.tfm-js .tfm-rail-widget:not(.is-in) .tfm-rail::after { transform: none !important; }
}

/* ---------- Photography layer ---------- */
.tfm-portrait img, .tfm-portrait .elementor-widget-container img { object-position: 50% 30%; box-shadow: 0 30px 60px -34px rgba(26,54,48,.5); }
.tfm-hero-photo, .tfm-hero-photo .elementor-widget-container { width: 100%; }
.elementor .tfm-hero-photo, .elementor .tfm-hero-photo .elementor-widget-container { border-radius: var(--tfm-radius-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(26,54,48,.45); }
.elementor .tfm-hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--tfm-radius-lg); }
.tfm-tile { position: relative; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(26,54,48,.55); }
.tfm-tile > .elementor-background-overlay { background: linear-gradient(180deg, rgba(26,54,48,0) 20%, rgba(26,54,48,.92) 100%) !important; opacity: 1 !important; }
.tfm-tile .elementor-widget-text-editor { max-width: 38ch; }
.tfm-method-card .tfm-step-num .elementor-heading-title { font-size: 1.5rem; color: var(--tfm-green); }
.tfm-service-card .tfm-photo--card, .tfm-service-card .tfm-photo--card .elementor-widget-container { border-radius: 0; }
.tfm-service-card .tfm-photo--card img { border-radius: 0; }

/* Gentle reveal on scroll (only when JS runs; never in the Elementor editor). */
.tfm-js .tfm-reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.tfm-js .tfm-reveal.is-in { opacity: 1; transform: none; transition: opacity .8s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tfm-js .tfm-reveal.is-in.tfm-service-card:hover { transform: translateY(-3px); }
.elementor-editor-active .tfm-reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .tfm-js .tfm-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Upgrades: mobile CTA, services scrollspy, article extras, hero entrance ---------- */
/* Added by theme.js once the page has settled; before that a smooth scroll would land short of a linked section. */
@media (prefers-reduced-motion: no-preference) { html.tfm-smooth { scroll-behavior: smooth; } }

.tfm-mobile-cta { display: none; }
@media (max-width: 767px) {
	.tfm-mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: .6rem; padding: .65rem .85rem calc(.65rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--tfm-line); box-shadow: 0 -12px 30px -18px rgba(26,54,48,.4); transform: translateY(115%); transition: transform .3s ease; }
	.tfm-mobile-cta.is-on { transform: none; }
	.tfm-mobile-cta.is-on.is-typing { transform: translateY(115%); }
	/* Tabbing to a field never leaves it behind the sticky header or this bar. */
	html { scroll-padding-top: 6.5rem; scroll-padding-bottom: 6rem; }
	body:has(#tfm-consent:not([hidden])) .tfm-mobile-cta { display: none; }
	.tfm-mobile-cta__main { flex: 1; justify-content: center; text-align: center; padding: .8rem 1rem; }
	.tfm-mobile-cta__call { flex: none; width: 50px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tfm-green); border-radius: var(--tfm-radius); color: var(--tfm-green); text-decoration: none; }
	body.tfm-has-mobile-cta { padding-bottom: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) { .tfm-mobile-cta { transition: none; } }



.tfm-readbar { position: sticky; top: var(--tfm-header-h); z-index: 41; height: 3px; background: transparent; }
.admin-bar .tfm-readbar { top: calc(var(--tfm-header-h) + 32px); }
@media (max-width: 782px) { .admin-bar .tfm-readbar { top: var(--tfm-header-h); } }
.tfm-readbar span { display: block; height: 100%; width: 100%; background: var(--tfm-green); transform: scaleX(0); transform-origin: left center; }
.tfm-related { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--tfm-cream); border-top: 1px solid var(--tfm-line); }
.tfm-related h2 { margin-bottom: 1.75rem; }

@keyframes tfm-scale-in { from { transform: scale(.96); } to { transform: none; } }
@keyframes tfm-rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
	.tfm-hero-media .elementor-widget-tfm-hero-slides { animation: tfm-scale-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
	.tfm-hero-sheet { animation: tfm-rise-in .9s cubic-bezier(.2,.7,.2,1) .55s both; }
}

/* ---------- Photo heroes: dark gradient keeps the words legible, subject stays in frame ---------- */
/* Theme page header (resources, legal, search, 404) */
.tfm-page-hero--photo { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(26rem, 58vh, 40rem); padding: clamp(7rem, 16vh, 10rem) 0 clamp(2.5rem, 5vw, 3.5rem); background: var(--tfm-green-dark); border-bottom: 0; }
.tfm-page-hero--photo .tfm-page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tfm-page-hero--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26,54,48,.18) 0%, rgba(26,54,48,.42) 45%, rgba(26,54,48,.9) 100%), linear-gradient(100deg, rgba(26,54,48,.62) 0%, rgba(26,54,48,.12) 60%); }
.tfm-page-hero--photo .tfm-page-hero__inner { display: block; }
.tfm-page-hero--photo .tfm-page-hero__text { max-width: 44rem; }
.tfm-page-hero--photo h1 { color: var(--tfm-cream); font-size: clamp(2.4rem, 4.8vw, 4rem); text-shadow: 0 2px 24px rgba(26,54,48,.35); }
.tfm-page-hero--photo .tfm-lead { color: #EAF0EC; }
.tfm-page-hero--photo .tfm-page-hero__crumb, .tfm-page-hero--photo .tfm-page-hero__crumb a { color: var(--tfm-sage); }
.tfm-page-hero--photo .tfm-page-hero__crumb a:hover { color: var(--tfm-cream); }
.tfm-page-hero--photo .tfm-resource-meta, .tfm-page-hero--photo .tfm-resource-meta a { color: var(--tfm-sage); }
.tfm-page-hero--photo .tfm-chips a { background: rgba(247,245,238,.1); border-color: rgba(183,199,191,.45); color: var(--tfm-cream); }
.tfm-page-hero--photo .tfm-chips a:hover { border-color: var(--tfm-cream); color: var(--tfm-cream); }
.tfm-page-hero--photo .tfm-chips a[aria-current="page"] { background: var(--tfm-cream); color: var(--tfm-green-dark); border-color: var(--tfm-cream); }
@media (max-width: 860px) { .tfm-page-hero--photo { min-height: 24rem; padding-top: 6rem; } }

/* Elementor heroes that carry a photo or video background (class tfm-dark, under Advanced → CSS Classes).
   Elementor's overlay element becomes a gradient instead of a flat tint. */
.e-con.tfm-page-hero-el.tfm-dark, .e-con.tfm-hero--split.tfm-dark { border-bottom: 0; background-color: var(--tfm-green-dark); }
/* Flexbox containers draw their overlay with ::before; legacy sections with a child div. Cover both. */
.e-con.tfm-page-hero-el.tfm-dark::before, .e-con.tfm-page-hero-el.tfm-dark > .elementor-background-overlay { background: linear-gradient(180deg, rgba(26,54,48,.14) 0%, rgba(26,54,48,.4) 45%, rgba(26,54,48,.9) 100%), linear-gradient(100deg, rgba(26,54,48,.64) 0%, rgba(26,54,48,.1) 62%) !important; opacity: 1 !important; }
.e-con.tfm-hero--split.tfm-dark::before, .e-con.tfm-hero--split.tfm-dark > .elementor-background-overlay { background: linear-gradient(100deg, rgba(26,54,48,.9) 0%, rgba(26,54,48,.66) 46%, rgba(26,54,48,.28) 100%), linear-gradient(0deg, rgba(26,54,48,.55) 0%, rgba(26,54,48,0) 40%) !important; opacity: 1 !important; }
/* Note: never position .e-con-inner; a boxed container's background video lives inside it and would shrink to the content width. */
.e-con.e-con-boxed > .e-con-inner > .elementor-background-video-container { width: 100%; height: 100%; }
.e-con.tfm-dark .elementor-widget-heading .elementor-heading-title { color: var(--tfm-cream); }
.e-con.tfm-dark .elementor-widget-text-editor, .e-con.tfm-dark .elementor-widget-text-editor p { color: #EAF0EC; }
.e-con.tfm-dark .tfm-lead, .e-con.tfm-dark .tfm-lead p { color: #EAF0EC; }
.e-con.tfm-dark .tfm-crumb, .e-con.tfm-dark .tfm-crumb p, .e-con.tfm-dark .tfm-crumb a { color: var(--tfm-sage); }
.e-con.tfm-dark .tfm-h-display .elementor-heading-title, .e-con.tfm-dark .tfm-h-xxl .elementor-heading-title { text-shadow: 0 2px 28px rgba(26,54,48,.4); }
.e-con.tfm-hero--split.tfm-dark .tfm-hero-sheet { background: rgba(255,255,255,.96); }
.e-con.tfm-hero--split.tfm-dark .elementor-background-video-container { opacity: 1; }
.e-con.tfm-hero--split.tfm-dark .elementor-background-video-container video, .e-con.tfm-hero--split.tfm-dark .elementor-background-video-container iframe { filter: saturate(.9) contrast(1.04); }
@media (max-width: 767px) {
	.e-con.tfm-page-hero-el.tfm-dark::before, .e-con.tfm-page-hero-el.tfm-dark > .elementor-background-overlay { background: linear-gradient(180deg, rgba(26,54,48,.35) 0%, rgba(26,54,48,.88) 100%) !important; }
	.e-con.tfm-hero--split.tfm-dark::before, .e-con.tfm-hero--split.tfm-dark > .elementor-background-overlay { background: linear-gradient(180deg, rgba(26,54,48,.72) 0%, rgba(26,54,48,.88) 100%) !important; }
	/* Phones: the whole photo at full width with the words below it on solid green, instead of a sliver of it blown up behind the text. */
	.e-con.tfm-page-hero-el.tfm-dark, .e-con.tfm-hero--split.tfm-dark, .e-con.tfm-cta-band-el { min-height: 0 !important; padding-top: calc(56vw + 1.5rem) !important; background-color: var(--tfm-green-dark) !important; background-repeat: no-repeat !important; background-size: 100vw auto !important; background-position: center top !important; }
	/* The row inside a hero carries its own minimum height for desktop; on phones it would leave empty green between the photo and the words. */
	.e-con.tfm-page-hero-el.tfm-dark > .e-con-inner > .e-con, .e-con.tfm-hero--split.tfm-dark > .e-con-inner > .e-con, .e-con.tfm-cta-band-el > .e-con-inner > .e-con { min-height: 0 !important; padding-top: 0 !important; }
	/* Elementor puts the container's own top padding on the inner wrapper; the photo offset above replaces it. */
	.e-con.tfm-page-hero-el.tfm-dark > .e-con-inner, .e-con.tfm-hero--split.tfm-dark > .e-con-inner, .e-con.tfm-cta-band-el > .e-con-inner { padding-top: 0 !important; }
	.e-con.tfm-page-hero-el.tfm-dark::before, .e-con.tfm-page-hero-el.tfm-dark > .elementor-background-overlay, .e-con.tfm-hero--split.tfm-dark::before, .e-con.tfm-hero--split.tfm-dark > .elementor-background-overlay, .e-con.tfm-cta-band-el::before, .e-con.tfm-cta-band-el > .elementor-background-overlay { background: linear-gradient(180deg, rgba(26,54,48,0) 0, rgba(26,54,48,0) 40vw, #1A3630 56vw, #1A3630 100%) !important; opacity: 1 !important; }
	/* A long word in a large heading must not push the page sideways on the narrowest phones. */
	.e-con .tfm-h-display .elementor-heading-title, .e-con .tfm-h-xxl .elementor-heading-title { font-size: clamp(2.125rem, 11.5vw, 3.75rem) !important; overflow-wrap: break-word; }
}
@media (prefers-reduced-motion: reduce) { .elementor-background-video-container { display: none !important; } }



/* Stats strip (.tfm-number headings): numbers rise out of a blur and count up when the strip scrolls into view, dividers draw themselves, labels follow. JS adds .tfm-stat to each item and --i for the stagger. */
.tfm-stat { --i: 0; position: relative; }
.tfm-js .tfm-stat.tfm-number__item { border-left-color: transparent; }
.tfm-js .tfm-stat.tfm-number__item::after { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .22; transform: scaleY(0); transform-origin: top; transition: transform .9s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 140ms); }
.tfm-js .tfm-stat.tfm-number__item:first-child::after { display: none; }
.tfm-js .tfm-stat .tfm-number .elementor-heading-title { opacity: 0; transform: translateY(.45em); filter: blur(8px); transition: opacity .7s ease calc(var(--i) * 140ms), transform 1s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 140ms), filter .8s ease calc(var(--i) * 140ms); }
.tfm-js .tfm-stat > .elementor-widget-text-editor { opacity: 0; transform: translateY(10px); transition: opacity .6s ease calc(var(--i) * 140ms + 320ms), transform .8s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 140ms + 320ms); }
.tfm-stat.is-in.tfm-number__item::after { transform: scaleY(1); }
.tfm-stat.is-in .tfm-number .elementor-heading-title, .tfm-stat.is-in > .elementor-widget-text-editor { opacity: 1; transform: none; filter: none; }
.tfm-count { display: inline-block; text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.tfm-count.is-done { animation: tfm-count-settle .6s cubic-bezier(.2, .7, .2, 1); }
@keyframes tfm-count-settle { 0% { transform: scale(1.06); } 100% { transform: scale(1); } }
.tfm-count__suffix { display: inline-block; font-size: .62em; vertical-align: .42em; margin-left: .04em; color: var(--tfm-sage); opacity: 0; transform: translateY(.3em) scale(.6); transition: opacity .4s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
.tfm-count.is-done ~ .tfm-count__suffix { opacity: 1; transform: none; }
@media (max-width: 767px) { .tfm-js .tfm-stat.tfm-number__item::after { display: none; } }

/* Operational support services (Services page). Hooks: tfm-support-intro, tfm-rail-widget > .tfm-rail, tfm-caps-group > .tfm-caps, tfm-option, tfm-xref, tfm-support-card (home). */
.e-con.tfm-support-intro { background-image: radial-gradient(70% 140% at 100% 0%, rgba(183, 199, 191, .16), rgba(183, 199, 191, 0) 60%), radial-gradient(50% 90% at 0% 100%, rgba(35, 72, 63, .9), rgba(35, 72, 63, 0) 70%); }
.tfm-support-intro .tfm-h-sans .elementor-heading-title { font-size: 1.05rem; color: var(--tfm-cream); }
.tfm-icon .elementor-icon { transition: transform .3s ease; }
.tfm-icon .elementor-icon svg { width: 1em; height: 1em; }

/* Breakdown rail: a real sequence, so it is numbered. The line draws across, steps follow it. */
.tfm-rail { --tfm-dot: 2.5rem; --tfm-gap: 1.75rem; list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--tfm-gap); counter-reset: tfm-rail; }
.tfm-rail::before, .tfm-rail::after { content: ""; position: absolute; top: calc(var(--tfm-dot) / 2 - 1px); left: calc(var(--tfm-dot) / 2); right: calc((100% - 4 * var(--tfm-gap)) / 5 - var(--tfm-dot) / 2); height: 2px; border-radius: 2px; background: var(--tfm-line); }
.tfm-rail::after { background: var(--tfm-green); transform-origin: left center; transition: transform 1.8s cubic-bezier(.3, .6, .2, 1) .15s; }
.tfm-rail li { position: relative; margin: 0; padding-top: calc(var(--tfm-dot) + 1rem); counter-increment: tfm-rail; transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.tfm-rail li::before { content: counter(tfm-rail); position: absolute; top: 0; left: 0; z-index: 1; width: var(--tfm-dot); height: var(--tfm-dot); display: grid; place-items: center; border-radius: 50%; background: #FFFFFF; border: 1.5px solid var(--tfm-green); color: var(--tfm-green); font-family: var(--tfm-serif); font-size: 1.15rem; line-height: 1; font-variant-numeric: lining-nums; box-shadow: 0 0 0 6px #FFFFFF; }
.tfm-rail li:last-child::before { background: var(--tfm-green); color: var(--tfm-cream); }
.tfm-rail strong { display: block; margin: 0 0 .3rem; font-weight: 600; font-size: 1.02rem; color: var(--tfm-green-dark); }
.tfm-rail span { display: block; font-size: .9375rem; line-height: 1.55; color: var(--tfm-muted); }
.tfm-rail li:nth-child(2) { transition-delay: .45s; }
.tfm-rail li:nth-child(3) { transition-delay: .8s; }
.tfm-rail li:nth-child(4) { transition-delay: 1.15s; }
.tfm-rail li:nth-child(5) { transition-delay: 1.5s; }
.tfm-rail li:nth-child(1) { transition-delay: .15s; }
.tfm-js .tfm-rail-widget:not(.is-in) .tfm-rail::after { transform: scaleX(0); }
.tfm-js .tfm-rail-widget:not(.is-in) .tfm-rail li { opacity: 0; transform: translateY(14px); }
.tfm-js .tfm-rail-widget.is-in .tfm-rail li:last-child::before { animation: tfm-rail-done .9s ease 1.9s both; }
@keyframes tfm-rail-done { 0% { box-shadow: 0 0 0 6px #FFFFFF, 0 0 0 6px rgba(35, 72, 63, .35); } 100% { box-shadow: 0 0 0 6px #FFFFFF, 0 0 0 18px rgba(35, 72, 63, 0); } }
@media (max-width: 900px) {
	.tfm-rail { grid-template-columns: 1fr; gap: 0; }
	.tfm-rail::before, .tfm-rail::after { top: calc(var(--tfm-dot) / 2); bottom: calc(var(--tfm-dot) + .5rem); left: calc(var(--tfm-dot) / 2 - 1px); right: auto; width: 2px; height: auto; }
	.tfm-rail::after { transform-origin: center top; }
	.tfm-js .tfm-rail-widget:not(.is-in) .tfm-rail::after { transform: scaleY(0); }
	.tfm-rail li { padding: .45rem 0 1.5rem calc(var(--tfm-dot) + 1rem); min-height: var(--tfm-dot); }
	.tfm-rail li:last-child { padding-bottom: 0; }
}

/* Capability groups: hairline with a short green tab, icon, title, "Name. Meaning." lines. */
.tfm-caps-group { position: relative; }
.e-con.tfm-caps-group::after { content: ""; position: absolute; top: -1px; left: 0; width: 3rem; height: 2px; background: var(--tfm-green); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.e-con.tfm-caps-group:hover::after { width: 6rem; }
.tfm-caps-group:hover .tfm-icon .elementor-icon { transform: translateY(-2px) rotate(-4deg); }
.tfm-caps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.tfm-caps li { position: relative; margin: 0; padding-left: 1.6rem; font-size: .9375rem; line-height: 1.55; color: var(--tfm-muted); }
.tfm-caps li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .8rem; height: .42rem; border-left: 1.5px solid var(--tfm-green); border-bottom: 1.5px solid var(--tfm-green); transform: rotate(-45deg); }
.tfm-caps strong { color: var(--tfm-charcoal); font-weight: 600; }

/* Engagement options and cross-references */
.e-con.tfm-option { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.e-con.tfm-option:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -30px rgba(26, 54, 48, .45); border-color: var(--tfm-sage) !important; }
.tfm-js .tfm-reveal.is-in.tfm-option:hover { transform: translateY(-3px); }
.elementor-widget.tfm-xref { position: relative; padding: .95rem 1.1rem .95rem 3.05rem; border-radius: 12px; background: var(--tfm-sage-light); color: var(--tfm-charcoal); font-size: .9375rem; line-height: 1.55; }
.elementor-widget.tfm-xref::before { content: ""; position: absolute; left: 1.05rem; top: 1.05rem; width: 1.2rem; height: 1.2rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323483F' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.07 0l2.83-2.83a5 5 0 0 0-7.07-7.07l-1.4 1.4'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.07 0l-2.83 2.83a5 5 0 0 0 7.07 7.07l1.4-1.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.tfm-xref p { margin: 0; }
.tfm-xref strong { color: var(--tfm-green-dark); }
.tfm-xref a { color: var(--tfm-green-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tfm-xref a:hover { text-decoration-thickness: 2px; }
.tfm-support .elementor-widget-text-editor.tfm-small:last-child { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--tfm-line); }

/* Home: the two support services as horizontal cards */
.e-con.tfm-support-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.e-con.tfm-support-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(26, 54, 48, .4); border-color: var(--tfm-sage) !important; }
.tfm-js .tfm-reveal.is-in.tfm-support-card:hover { transform: translateY(-3px); }
.tfm-support-card .tfm-photo--card img { aspect-ratio: 3 / 2; width: 100%; height: auto; object-fit: cover; border-radius: 10px; }
.tfm-support-strip .tfm-h-sans .elementor-heading-title { font-size: 1rem; color: var(--tfm-muted); }
@media (max-width: 767px) { .tfm-support-card .tfm-h-l .elementor-heading-title { font-size: 1.1rem; } .tfm-support-card .tfm-small { display: none; } }
.elementor-widget-text-editor .tfm-rail, .elementor-widget-text-editor .tfm-caps { padding-left: 0; }
.e-con.tfm-dark.tfm-support-intro .elementor-heading-title, .e-con.tfm-dark.tfm-support-intro .tfm-h-xxl .elementor-heading-title, .e-con.tfm-dark.tfm-support-intro .tfm-lead { text-shadow: none; }

/* Header dropdown (Services, and any menu item given child items in Appearance → Menus).
   Mouse: hover. Keyboard: Tab to the chevron and press Enter, or Arrow Down from the link. Touch: tap the chevron. */
.tfm-menu li.tfm-has-sub { display: flex; align-items: center; gap: .1rem; }
.tfm-menu .tfm-sub-toggle { min-width: 0; box-shadow: none; display: inline-grid; place-items: center; width: 1.65rem; height: 1.65rem; margin: 0 -.45rem 0 0; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--tfm-charcoal); cursor: pointer; transition: background .15s ease, color .15s ease; }
.tfm-menu .tfm-sub-toggle:hover { background: var(--tfm-sage-light); color: var(--tfm-green-dark); }
.tfm-menu .tfm-sub-toggle svg { display: block; transition: transform .2s ease; }
.tfm-menu .is-sub-open > .tfm-sub-toggle { color: var(--tfm-green-dark); }
.tfm-menu .is-sub-open > .tfm-sub-toggle svg { transform: rotate(180deg); }
body .tfm-menu .is-sub-open > a { color: var(--tfm-green-dark); border-bottom-color: var(--tfm-green); }
@media (pointer: coarse) and (min-width: 901px) { .tfm-menu .tfm-sub-toggle { width: 2.5rem; height: 2.5rem; } }

.tfm-menu .tfm-nav-panel, .tfm-menu .tfm-has-sub > .sub-menu { display: none; }
.tfm-menu .is-sub-open > .tfm-nav-panel, .tfm-menu .is-sub-open > .sub-menu, .tfm-menu:not(.tfm-menu--js) .tfm-has-sub:hover > .tfm-nav-panel, .tfm-menu:not(.tfm-menu--js) .tfm-has-sub:focus-within > .tfm-nav-panel, .tfm-menu:not(.tfm-menu--js) .tfm-has-sub:hover > .sub-menu, .tfm-menu:not(.tfm-menu--js) .tfm-has-sub:focus-within > .sub-menu { display: block; animation: tfm-panel-in .18s ease both; }
@keyframes tfm-panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tfm-nav-panel { white-space: normal; }
.tfm-nav-panel__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem 1.25rem; }
.tfm-nav-panel__label { margin: 0 0 .35rem; padding: 0 .55rem; font-size: .8rem; font-weight: 600; line-height: 1.4; color: var(--tfm-muted); }
.tfm-nav-panel ul { display: grid; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.tfm-menu .tfm-nav-panel a { display: flex; align-items: center; gap: .7rem; padding: .4rem .55rem; border: 0; border-radius: 10px; font-family: var(--tfm-sans); font-size: .94rem; font-weight: 500; line-height: 1.3; white-space: normal; transition: background .15s ease; }
body .tfm-menu .tfm-nav-panel a:hover { background: var(--tfm-sage-light); color: var(--tfm-green-dark); }
body .tfm-menu .tfm-nav-panel a[aria-current] { background: var(--tfm-cream); color: var(--tfm-green-dark); }
.tfm-nav-panel__thumb { flex: none; width: 3.1rem; height: 2.15rem; overflow: hidden; border-radius: 7px; background: var(--tfm-sage-light); }
.tfm-nav-panel__thumb img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.tfm-menu .tfm-nav-panel .tfm-nav-panel__all { justify-content: center; margin-top: .85rem; padding: .65rem .9rem; background: var(--tfm-cream); font-weight: 600; }
body .tfm-menu .tfm-nav-panel .tfm-nav-panel__all { color: var(--tfm-green-dark); }
@media (min-width: 901px) {
	.tfm-menu .is-sub-open::after { content: ""; position: absolute; left: -1rem; right: -1rem; top: 100%; height: 1.6rem; }
	.tfm-menu .tfm-nav-panel { position: absolute; top: calc(100% + 1.45rem); left: 50%; z-index: 60; width: min(47rem, calc(100vw - 2.5rem)); max-height: calc(100vh - var(--tfm-header-h) - 2rem); max-height: calc(100dvh - var(--tfm-header-h) - 2rem); overflow-y: auto; translate: -50% 0; padding: 1.1rem; background: var(--tfm-white); border: 1px solid var(--tfm-line); border-radius: 16px; box-shadow: 0 34px 70px -34px rgba(26, 54, 48, .55), 0 6px 18px -12px rgba(26, 54, 48, .25); }
}
@media (max-width: 900px) {
	.tfm-menu li.tfm-has-sub { display: grid; grid-template-columns: minmax(0, 1fr) 3rem; gap: 0; align-items: stretch; }
	.tfm-menu .tfm-sub-toggle { width: 3rem; height: auto; min-height: 3rem; margin: 0; border-bottom: 1px solid var(--tfm-line); border-radius: 0; }
	.tfm-menu .tfm-nav-panel, .tfm-menu .tfm-has-sub > .sub-menu { grid-column: 1 / -1; }
	.tfm-menu .tfm-nav-panel { padding: .75rem 0 1rem; border-bottom: 1px solid var(--tfm-line); }
	.tfm-menu .tfm-nav-panel a { min-height: 2.9rem; font-size: 1rem; }
	.tfm-nav-panel__groups { gap: 1rem; }
}

/* Services overview band: replaces the old sideways-scrolling chip row. */
.elementor-element.tfm-svc-band { color: var(--tfm-cream); }
.tfm-svc-band .tfm-svc-index__label { color: var(--tfm-cream); }
@media (max-width: 900px) { body .tfm-menu .is-sub-open > a { border-bottom-color: var(--tfm-line); } }
.tfm-menu .tfm-sub-toggle:focus, .tfm-menu .tfm-sub-toggle:active { background: var(--tfm-sage-light); color: var(--tfm-green-dark); }
.tfm-menu .tfm-sub-toggle:focus:not(:hover):not(:focus-visible) { background: none; }
