/* 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 { scroll-behavior: smooth; scrollbar-color: var(--tfm-sage) transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::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 li:hover > .sub-menu, .tfm-menu 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)); 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 { display: block; 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; color: var(--tfm-sage); font-size: .9rem; }
.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, .tfm-jump 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, .tfm-jump 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-jump { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0 !important; margin: 0; }
.tfm-jump li { margin: 0; }
.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 { display: none !important; }
	body { background: #fff; }
}

/* ---------- 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 { transition: transform .8s cubic-bezier(.2,.7,.2,1); border-radius: 0; }
.tfm-service-card:hover .tfm-photo--card img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .tfm-service-card .tfm-photo--card img { transition: none; } .tfm-service-card:hover .tfm-photo--card img { transform: none; } }

/* 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; } }
