/* 13 Below — section and component styles used by the theme's patterns. */

:root {
	--tb-navy: var(--wp--preset--color--navy, #0A1628);
	--tb-navy-2: var(--wp--preset--color--navy-2, #12223A);
	--tb-line: var(--wp--preset--color--navy-line, #1E3349);
	--tb-accent: var(--wp--preset--color--accent, #C2410C);
	--tb-mist: var(--wp--preset--color--mist, #B4C3D3);
	--tb-muted: var(--wp--preset--color--muted, #9FB0C4);
	--tb-slate: var(--wp--preset--color--slate, #3A4B5E);
	--tb-section: var(--wp--preset--spacing--xl, 6.5rem);
}

/* ---------- Bands (full-width sections) ---------- */
.tb-band { padding-top: var(--tb-section); padding-bottom: var(--tb-section); }
.tb-band.tb-tight { padding-top: var(--wp--preset--spacing--l); padding-bottom: var(--wp--preset--spacing--l); }
.tb-band.tb-flush-top { padding-top: 0; }
.tb-dark { background: var(--tb-navy); color: #EEF2F6; }
.tb-dark a:where(:not(.wp-element-button)) { color: #fff; }
.tb-dark p { color: var(--tb-mist); }
.tb-white { background: #fff; }
.tb-accent { background: var(--tb-accent); color: #fff; }
.tb-accent p, .tb-accent a:where(:not(.wp-element-button)) { color: #fff; }
.tb-accent .wp-element-button { background: var(--tb-navy); }
.tb-accent .wp-element-button:hover { background: #fff; color: var(--tb-navy); }
.tb-banner { border-top: 1px solid var(--tb-line); padding-top: 3.5rem; padding-bottom: 5.5rem; }

/* ---------- Topic text on blog and category pages ([tb_topic]) ---------- */
.tb-topic { padding: var(--tb-section) var(--wp--style--root--padding-right, 2rem) var(--tb-section) var(--wp--style--root--padding-left, 2rem); }
.tb-topic-in { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 4rem; }
.tb-topic h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 3rem) !important; overflow-wrap: normal; word-break: normal; hyphens: none; }
.tb-topic-body p { color: var(--tb-slate); margin: 0 0 1.1rem; }
.tb-topic-body p:first-child { font-size: var(--wp--preset--font-size--lead); line-height: 1.55; color: var(--tb-navy); }
.tb-topic-body a { color: var(--tb-accent); }
@media (max-width: 781px) { .tb-topic-in { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Type ---------- */
.tb-eyebrow { font-size: 0.875rem !important; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tb-accent) !important; margin: 0; }
.tb-dark .tb-eyebrow { color: #FB8A4F !important; }
.tb-lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.55; max-width: 44rem; }
.tb-hl { color: var(--tb-accent); }
.tb-dark .tb-hl { color: #FB8A4F; }
.tb-num { font-size: 2rem !important; font-weight: 900; letter-spacing: -0.04em; color: var(--tb-accent) !important; line-height: 1; margin: 0; }
.tb-small-caps { font-size: 0.75rem !important; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tb-muted) !important; margin: 0; }
.tb-breadcrumb { font-size: 0.875rem; color: var(--tb-muted) !important; }
.tb-breadcrumb a { color: var(--tb-muted) !important; text-decoration: none; }

/* ---------- Tile grids (3px navy gutters) ---------- */
.tb-tiles { gap: 3px !important; background: var(--tb-navy); border: 3px solid var(--tb-navy); }
.tb-tiles > * { background: #fff; padding: 2rem; margin: 0 !important; }
.tb-tiles > * > * + * { margin-top: 0.75rem; }
.tb-dark .tb-tiles, .tb-tiles.tb-tiles-dark { background: transparent; border: 0; }
.tb-dark .tb-tiles > *, .tb-tiles.tb-tiles-dark > * { background: var(--tb-navy-2); color: #EEF2F6; }
.tb-tiles > .tb-tile-accent { background: var(--tb-accent) !important; color: #fff; }
.tb-tiles > .tb-tile-accent p { color: #FFF1E8; }
.tb-tiles p { margin: 0; color: var(--tb-slate); font-size: 0.9375rem; }
.tb-dark .tb-tiles p, .tb-tiles.tb-tiles-dark p { color: var(--tb-mist); }
.tb-tiles a.tb-more, .tb-more { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.875rem; color: var(--tb-accent) !important; text-decoration: none; }

/* ---------- Rows (stacked white strips) ---------- */
.tb-rows { gap: 3px !important; }
.tb-rows > * { background: #fff; padding: 1.5rem 1.75rem; margin: 0 !important; }
.tb-rows h3 { margin: 0; }

/* ---------- Ruled list (top border per item) ---------- */
.tb-ruled > * { border-top: 3px solid var(--tb-navy); padding-top: 1.25rem; }
.tb-dark .tb-ruled > * { border-top-color: var(--tb-accent); }

/* ---------- Client band ---------- */
.tb-logos { font-weight: 800; font-size: 1.0625rem; letter-spacing: 0.06em; text-transform: uppercase; }
.tb-logos p { margin: 0; color: inherit; }

/* ---------- Call flow figure ---------- */
.tb-flow > * { background: var(--tb-navy-2); border-left: 4px solid #4B6283; padding: 1.25rem 1.5rem; margin: 0 !important; }
.tb-flow > .tb-flow-accent { background: var(--tb-accent); border-left-color: var(--tb-accent); }
.tb-flow > .tb-flow-accent p { color: #fff; }
.tb-flow p { margin: 0; color: #fff; font-weight: 800; font-size: 1.25rem; }
.tb-flow .tb-small-caps { font-size: 0.75rem !important; }

/* ---------- FAQ ---------- */
.tb-faq .wp-block-details { border-top: 1px solid var(--tb-mist); padding: 1.25rem 0; margin: 0; }
.tb-faq .wp-block-details:first-child { border-top: 2px solid var(--tb-navy); }
.tb-faq .wp-block-details:last-child { border-bottom: 1px solid var(--tb-mist); }
.tb-faq summary { font-size: 1.25rem; font-weight: 800; cursor: pointer; }
.tb-faq details p { color: var(--tb-slate); margin-top: 0.75rem; }

/* ---------- Header ---------- */
.tb-header { background: var(--tb-navy); }
.tb-header .wp-block-site-title a { color: #fff; text-decoration: none; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.tb-header .wp-block-navigation a { color: #C9D3E0; text-decoration: none; }
.tb-header .wp-block-navigation a:hover,
.tb-header .wp-block-navigation .current-menu-item > a { color: #fff; box-shadow: inset 0 -2px 0 var(--tb-accent); }
.tb-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--tb-navy); color: #fff; }
.tb-header p.wp-block-site-title { margin: 0; line-height: 1.2; }
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.tb-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--tb-accent); color: #fff; font-weight: 900; font-size: 18px; text-decoration: none; }

/* ---------- Footer ---------- */
.tb-footer { background: var(--tb-navy); color: var(--tb-muted); font-size: 0.9375rem; }
.tb-footer a { color: #C9D3E0; text-decoration: none; }
.tb-footer a:hover { color: #fff; }
.tb-footer h2 { font-size: 0.8125rem; letter-spacing: 0.14em; color: #fff; text-transform: uppercase; }
.tb-footer p { color: var(--tb-muted); margin: 0; }
.tb-footer .tb-legal { border-top: 1px solid var(--tb-line); padding-top: 1.5rem; font-size: 0.8125rem; }

/* ---------- Blog ---------- */
.tb-post-card { background: #fff; height: 100%; }
.tb-post-card .wp-block-post-featured-image { margin: 0; }
.tb-post-card .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.tb-post-card .tb-post-card-body { padding: 1.75rem; }
.tb-post-card .wp-block-post-title { font-size: 1.375rem; text-transform: none; letter-spacing: -0.01em; line-height: 1.2; }
.tb-post-card .wp-block-post-title a { text-decoration: none; }
.tb-post-card .wp-block-post-terms a { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tb-accent); text-decoration: none; }
.tb-article { font-family: var(--wp--preset--font-family--serif); font-size: 1.25rem; line-height: 1.75; color: #1F2D40; }
.tb-article h2, .tb-article h3 { font-family: var(--wp--preset--font-family--archivo); text-transform: none; color: var(--tb-navy); }
.tb-article h2 { font-size: 2rem; letter-spacing: -0.02em; line-height: 1.1; margin-top: 2.5rem; }
.tb-article h3 { font-size: 1.5rem; margin-top: 2rem; }
.tb-single-title { text-transform: none !important; font-size: clamp(2.5rem, 5vw, 4rem) !important; line-height: 0.98 !important; }
.wp-block-query-pagination a, .wp-block-query-pagination span { font-weight: 800; }

/* ---------- Forms (works with most form plugins) ---------- */
.tb-form input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.tb-form select, .tb-form textarea { width: 100%; border: 1.5px solid var(--tb-mist); padding: 0.875rem; font: inherit; font-size: 1rem; background: #fff; border-radius: 0; }
.tb-form input[type=submit], .tb-form button[type=submit] { background: var(--tb-accent); color: #fff; border: 0; padding: 1.1rem 2rem; font: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }

/* ---------- Accessibility & small screens ---------- */
:where(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid #FB8A4F; outline-offset: 2px; }
@media (max-width: 781px) {
	.tb-band { padding-top: 4rem; padding-bottom: 4rem; }
	.tb-tiles > * { padding: 1.5rem; }
}

/* ---------- Outline buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--tb-navy); border: 2px solid currentColor; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--tb-navy); color: #fff; border-color: var(--tb-navy); }
.tb-dark .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }
.tb-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--tb-navy); border-color: #fff; }

/* ---------- Blog category chips ---------- */
.tb-cat-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.tb-cat-chips li a { display: inline-block; padding: 0.5rem 0.9rem; border: 1.5px solid var(--tb-mist); color: var(--tb-navy); text-decoration: none; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.tb-cat-chips li a:hover, .tb-cat-chips li.current-cat a { background: var(--tb-navy); border-color: var(--tb-navy); color: #fff; }

/* ---------- Tables ---------- */
.tb-table table { border-collapse: collapse; width: 100%; }
.tb-table th { text-align: left; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #FB8A4F; padding: 0.875rem 1rem; border-bottom: 2px solid var(--tb-accent); }
.tb-table td { padding: 1rem; border: 0; border-bottom: 1px solid var(--tb-line); vertical-align: top; }
.tb-table td:first-child { font-weight: 800; color: #fff; white-space: nowrap; }
.tb-white .wp-block-column:last-child { background: #fff; }
@media (max-width: 781px) { .tb-table td:first-child { white-space: normal; } }
/* =========================================================
   v1.1 fixes and new components
   ========================================================= */

/* No gaps between header, page sections and footer. */
.wp-site-blocks > * + *,
main.wp-block-group > * + *,
.wp-block-template-part > * + *,
.wp-site-blocks .wp-block-post-content > section + section { margin-block-start: 0 !important; }
main.wp-block-group { margin-top: 0; }

/* Header navigation: light links on navy. */
.tb-header .wp-block-navigation .wp-block-navigation-item__content { color: #D7E0EA !important; text-decoration: none; padding: 0.35rem 0; }
.tb-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.tb-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content { color: #fff !important; box-shadow: inset 0 -2px 0 var(--tb-accent); }
.tb-header .wp-block-navigation { gap: 1.75rem; }
.tb-header .wp-block-navigation__container { gap: 1.75rem; }
.tb-header .wp-block-navigation__responsive-container-open,
.tb-header .wp-block-navigation__responsive-container-close { color: #fff; }
.tb-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--tb-navy) !important; padding: 2rem; }
.tb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; }
.tb-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--tb-line); }
.admin-bar .tb-header { top: 32px; }

/* Headings inside small UI spots keep small sizes. */
.tb-footer h2 { font-size: 0.8125rem !important; line-height: 1.3; letter-spacing: 0.14em !important; }
.tb-accent h2 { color: #fff; }
.tb-dark h1, .tb-dark h2, .tb-dark h3 { color: #fff; }
.tb-tiles h3 { font-size: 1.125rem; }
.tb-rows h3 a { color: inherit; text-decoration: none; }
.tb-rows h3 a:hover { color: var(--tb-accent); }
h2.wp-block-heading { overflow-wrap: anywhere; }

/* Section intro text under a heading */
.tb-intro { color: var(--tb-slate); font-size: var(--wp--preset--font-size--lead); line-height: 1.6; max-width: 52rem; }
.tb-dark .tb-intro { color: var(--tb-mist); }

/* Stats strip */
.tb-stats { gap: 3px !important; }
.tb-stats > * { border-top: 3px solid var(--tb-accent); padding-top: 1.25rem; margin: 0 !important; }
.tb-stats .tb-stat-n { font-size: clamp(2.5rem, 5vw, 4rem) !important; font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: var(--tb-navy); margin: 0; }
.tb-dark .tb-stats .tb-stat-n { color: #fff; }
.tb-stats .tb-stat-l { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tb-slate); margin: 0.5rem 0 0; }
.tb-dark .tb-stats .tb-stat-l { color: var(--tb-mist); }

/* Testimonials */
.tb-quotes { gap: 1.5rem !important; }
.tb-quotes > * { background: #fff; padding: 2.25rem; border-top: 4px solid var(--tb-accent); margin: 0 !important; display: flex; flex-direction: column; }
.tb-dark .tb-quotes > * { background: var(--tb-navy-2); }
.tb-quote-text { font-family: var(--wp--preset--font-family--serif); font-size: 1.125rem; line-height: 1.65; color: #1F2D40; margin: 0 0 1.5rem; flex: 1; }
.tb-dark .tb-quote-text { color: #E3E9F0 !important; }
.tb-quote-who { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8125rem; color: var(--tb-navy); margin: 0; }
.tb-dark .tb-quote-who { color: #fff !important; }
.tb-quote-tech { font-size: 0.8125rem; color: var(--tb-slate); margin: 0.35rem 0 0; }
.tb-dark .tb-quote-tech { color: var(--tb-muted) !important; }

/* Check lists (multi-column) */
.tb-checks { list-style: none; padding: 0; margin: 0; columns: 3 16rem; column-gap: 2.5rem; }
.tb-checks li { break-inside: avoid; padding: 0.55rem 0 0.55rem 1.75rem; position: relative; border-bottom: 1px solid #D5DEE8; color: var(--tb-slate); font-size: 0.9375rem; }
.tb-checks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 0.75rem; height: 0.75rem; background: var(--tb-accent); }
.tb-dark .tb-checks li { color: var(--tb-mist); border-bottom-color: var(--tb-line); }
.tb-checks.tb-checks-2 { columns: 2 18rem; }

/* Numbered steps */
.tb-steps { counter-reset: tbstep; gap: 3px !important; }
.tb-steps > * { counter-increment: tbstep; background: #fff; padding: 1.75rem 1.75rem 1.75rem 5.5rem; position: relative; margin: 0 !important; }
.tb-steps > *::before { content: counter(tbstep, decimal-leading-zero); position: absolute; left: 1.75rem; top: 1.6rem; font-size: 1.75rem; font-weight: 900; color: var(--tb-accent); letter-spacing: -0.04em; }
.tb-steps h3 { margin: 0 0 0.35rem; font-size: 1.125rem; }
.tb-steps p { margin: 0; color: var(--tb-slate); }
.tb-dark .tb-steps > * { background: var(--tb-navy-2); }
.tb-dark .tb-steps p { color: var(--tb-mist); }

/* Case study cards */
.tb-cases { gap: 3px !important; background: var(--tb-navy); border: 3px solid var(--tb-navy); }
.tb-cases > * { background: #fff; padding: 2rem; margin: 0 !important; }
.tb-cases .tb-case-tag { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tb-accent); margin: 0 0 0.5rem; }
.tb-cases h3 { margin: 0 0 0.75rem; font-size: 1.25rem; }
.tb-cases p { color: var(--tb-slate); font-size: 0.9375rem; margin: 0 0 0.75rem; }
.tb-cases .tb-case-tech { font-size: 0.8125rem; color: #5D6F84; border-top: 1px solid #D5DEE8; padding-top: 0.75rem; margin: 0.75rem 0 0; }

/* Feature (two-column product) blocks */
.tb-feature { background: #fff; border-left: 6px solid var(--tb-accent); padding: clamp(1.75rem, 4vw, 3rem); }
.tb-feature + .tb-feature { margin-top: 1.5rem !important; }
.tb-dark .tb-feature { background: var(--tb-navy-2); }

/* Pills (tech tags) */
.tb-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.tb-pills li { border: 1.5px solid #C5D1DE; padding: 0.4rem 0.8rem; font-size: 0.8125rem; font-weight: 700; color: var(--tb-navy); }
.tb-dark .tb-pills li { border-color: var(--tb-line); color: #D7E0EA; }

/* Contact Form 7 */
.tb-form .wpcf7 p { margin: 0 0 1.1rem; }
.tb-form .wpcf7 label { display: block; font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tb-navy); }
.tb-form .wpcf7 label input, .tb-form .wpcf7 label select, .tb-form .wpcf7 label textarea { margin-top: 0.4rem; text-transform: none; letter-spacing: 0; font-weight: 400; }
.tb-form .wpcf7-form-control-wrap { display: block; }
.tb-form .wpcf7 textarea { min-height: 10rem; }
.tb-form .tb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 781px) { .tb-form .tb-form-row { grid-template-columns: 1fr; } }
.tb-form .wpcf7-response-output { margin: 1rem 0 0 !important; padding: 1rem !important; border-width: 2px !important; }
.tb-form .wpcf7-not-valid-tip { font-size: 0.8125rem; color: #B42318; }
.tb-form-card { background: #fff; padding: clamp(1.75rem, 4vw, 3rem); border-top: 4px solid var(--tb-accent); }
.tb-contact-side p { margin: 0; }

/* Blog post images and lists */
.tb-article img { max-width: 100%; height: auto; }
.tb-article ul, .tb-article ol { padding-left: 1.4em; }
.tb-article a { color: var(--tb-accent); }

@media (max-width: 781px) {
	.tb-header .wp-block-site-title { display: none; }
	.tb-steps > * { padding-left: 4.5rem; }
}
/* v1.1.1: grids fill the row; header stays on one line */
.tb-fit.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(var(--tb-min, 18rem), 100%), 1fr)) !important; }
.tb-min-11 { --tb-min: 11rem; } .tb-min-12 { --tb-min: 12rem; } .tb-min-14 { --tb-min: 14rem; }
.tb-min-16 { --tb-min: 16rem; } .tb-min-18 { --tb-min: 18rem; } .tb-min-20 { --tb-min: 20rem; }
.tb-min-21 { --tb-min: 21rem; } .tb-min-22 { --tb-min: 22rem; }
@media (min-width: 1000px) {
	.tb-header > .alignwide { flex-wrap: nowrap !important; gap: 2rem; }
	.tb-header .wp-block-navigation { flex: 1 1 auto; }
	.tb-header .wp-block-navigation__container { gap: 1.25rem !important; }
	.tb-header .wp-block-button__link { white-space: nowrap; }
}
@media (min-width: 1000px) and (max-width: 1180px) {
	.tb-header .wp-block-navigation__container { gap: 0.9rem !important; }
	.tb-header .wp-block-navigation-item__content { font-size: 0.78rem; }
}
.tb-stat-n { white-space: nowrap; }
/* v1.1.2: light tile grids use collapsed borders so empty cells stay blank */
.tb-tiles:not(.tb-tiles-dark) { gap: 0 !important; background: transparent !important; border: 0 !important; padding: 3px 0 0 3px; }
.tb-tiles:not(.tb-tiles-dark) > * { border: 3px solid var(--tb-navy); margin: -3px 0 0 -3px !important; }
.tb-dark .tb-tiles:not(.tb-tiles-dark) > * { border-color: var(--tb-navy); }
.tb-header .wp-block-site-title { white-space: nowrap; }
@media (min-width: 1000px) {
	.tb-header > .alignwide { max-width: min(1440px, calc(100vw - 4rem)) !important; }
}
/* v1.1.3: contact form layout */
.tb-form .tb-form-row > p { display: contents; }
.tb-form .tb-form-row br { display: none; }
.tb-form .wpcf7 label { display: block; margin-bottom: 1rem; }
.tb-form .wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 0.35rem; }
.tb-form .wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]), .tb-form .wpcf7 select, .tb-form .wpcf7 textarea { width: 100% !important; box-sizing: border-box; }
.tb-contact-side > p.tb-eyebrow { margin-top: 1.75rem !important; margin-bottom: 0.35rem !important; }
.tb-contact-side > p.tb-eyebrow:first-child { margin-top: 0 !important; }
.tb-contact-side > p { margin-top: 0 !important; }