/*
 * TM Base - section library for pages built in blocks.
 *
 * Every page section is a full-width core/group with the class tm-sec plus a
 * kind (tm-sec--hero, ...). Inside, plain core blocks: heading, paragraph,
 * buttons, columns, html, shortcode. The block patterns in inc/patterns.php
 * insert them ready-made. Values match the Elementor sections they replace
 * (docs/elementor-exit-plan.md, stage B).
 *
 * Selectors start with .tmb-site so the Elementor kit (0,1,1 on h1-h6, a,
 * button) cannot win while free Elementor is still installed.
 */

/* ---------- Section frame ---------- */
.tmb-site .tm-sec { margin: 0; padding: 72px 20px 80px; }
/* Zero weight, so a component's own width (e.g. .tm-refpage 920px) wins. */
:where(.tmb-site .tm-sec) > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
/* 20px between blocks, as Elementor's container gap. HTML bodies are
   flow-root so their inner margins add to it instead of collapsing into it,
   as in Elementor's flex containers. */
.tmb-site .tm-sec > * + * { margin-top: 20px; }
/* A shortcode that opens with its own <style> is not a block: no gap after it. */
.tmb-site .tm-sec > :is(style, script, link) + * { margin-top: 0; }
.tmb-site .tm-privacy, .tmb-site .tm-tos, .tmb-site .tm-smx { display: flow-root; }
.tmb-site .tmb-page > .tm-sec + .tm-sec { margin-top: 0; }

/* ---------- Hero: the site's standard page opener (same as the archive band) ---------- */
.tmb-site .tm-sec--hero {
	padding: 92px 20px; text-align: center; color: #fff;
	background: radial-gradient(at 100% 0%, #2C3680 0%, #1B2150 100%);
}
.tmb-site .tm-sec--hero .tm-eyebrow {
	margin: 0 auto 42px; color: var(--wp--preset--color--orange, #F57B20);
	font-size: 30px; font-weight: 700; line-height: 1.4; letter-spacing: -.5px;
}
.tmb-site .tm-sec--hero h1 {
	margin: 0 auto; color: #fff; font-size: 46px; font-weight: 600; line-height: 1.12; letter-spacing: -.5px;
}
.tmb-site .tm-sec--hero .tm-lede {
	max-width: 640px; margin: 40px auto 0; color: #B9CEFF; font-size: 18px; line-height: 1.7;
}

/* ---------- Legal pages (Privacy, Terms) ---------- */
.tmb-site .tm-privacy, .tmb-site .tm-tos {
	max-width: 860px; margin-left: auto; margin-right: auto; text-align: left; color: #3F4150;
	font-family: Poppins, sans-serif; font-weight: 400;
}
.tmb-site .tm-privacy h2, .tmb-site .tm-tos h2 { margin: 32px 0 8px; color: #283071; font-size: 20px; font-weight: 700; line-height: 1.35; }
.tmb-site .tm-privacy p, .tmb-site .tm-tos p { margin: 0; font-size: 15.5px; font-weight: 400; line-height: 1.8; }
.tmb-site .tm-privacy a, .tmb-site .tm-tos a { color: #283071; font-weight: 700; text-decoration: none; }
.tmb-site .tm-privacy a:hover, .tmb-site .tm-tos a:hover { text-decoration: underline; }
.tmb-site .tm-privacy .lead, .tmb-site .tm-tos .lead { color: #6A6F86; }
.tmb-site .tm-privacy .lead { margin-bottom: 10px; }
.tmb-site .tm-tos .lead { margin-bottom: 4px; }
.tmb-site .tm-tos strong { font-weight: 700; }
.tmb-site .tm-tos .ph { color: #F57B20; font-weight: 700; }

/* ---------- Sitemap cards ---------- */
.tmb-site .tm-smx { max-width: 1080px; margin-left: auto; margin-right: auto; font-family: Poppins, sans-serif; }
.tmb-site .tm-smx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.tmb-site .tm-smx-card { padding: 28px 26px; background: #fff; border: 1px solid #E8ECF8; border-radius: 6px; box-shadow: 0 10px 30px rgba(40, 48, 113, .06); }
.tmb-site .tm-smx-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.tmb-site .tm-smx-ico { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 6px; background: #EEF2FF; }
.tmb-site .tm-smx .tm-smx-card .tm-smx-head h2.tm-smx-title { flex: 1; margin: 0; color: #283071; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.2px; }
.tmb-site .tm-smx-card ul { list-style: none; margin: 0; padding: 0; }
.tmb-site .tm-smx-card li + li { border-top: 1px solid #F0F2FA; }
.tmb-site .tm-smx-card a { display: flex; align-items: center; gap: 8px; padding: 9px 0; color: #3F4150; font-size: 15px; text-decoration: none; transition: color .15s ease, padding-left .15s ease; }
.tmb-site .tm-smx-card a:hover { color: #F57B20; padding-left: 5px; }
.tmb-site .tm-smx-card a svg { flex: 0 0 auto; opacity: .45; transition: opacity .15s ease, transform .15s ease; }
.tmb-site .tm-smx-card a:hover svg { opacity: 1; transform: translateX(2px); }

/* ---------- Hero intro, softer variant (Services) ---------- */
.tmb-site .tm-sec--hero .tm-lede.tm-lede--soft { max-width: 620px; margin-top: 56px; color: #C3C8EC; line-height: 1.6; }

/* ---------- Buttons inside sections (core/button) ---------- */
.tmb-site .tm-sec .wp-block-buttons { gap: 14px 16px; }
.tmb-site .tm-sec .wp-block-button__link {
	display: inline-block; padding: 12px 24px; border: 0; border-radius: 8px;
	background: var(--wp--preset--color--orange, #F57B20); color: #fff;
	font-size: 18px; font-weight: 400; line-height: 1.65; text-decoration: none;
	transition: background-color .2s ease;
}
.tmb-site .tm-sec .wp-block-button__link:hover, .tmb-site .tm-sec .wp-block-button__link:focus-visible { background: #CA651A; color: #fff; }
.tmb-site .tm-sec .tm-btn-navy .wp-block-button__link { padding: 12px 26px; background: var(--wp--preset--color--navy, #283071); font-size: 14px; font-weight: 600; }
.tmb-site .tm-sec .tm-btn-navy .wp-block-button__link:hover { background: var(--wp--preset--color--orange, #F57B20); }

/* ---------- CTA band: navy, centred heading + line + buttons ---------- */
.tmb-site .tm-sec--cta { padding: 90px 20px; background: var(--wp--preset--color--navy, #283071); text-align: center; }
.tmb-site .tm-sec--cta h2 { margin: 0 auto; color: #fff; font-weight: 700; }
.tmb-site .tm-sec--cta p { max-width: 580px; color: #D7DEF7; font-size: 18px; line-height: 1.7; }
.tmb-site .tm-sec--cta .wp-block-buttons { margin-top: 30px; justify-content: center; }

/* ---------- Full-width shortcode sections ---------- */
.tmb-site .tm-sec--catalog { padding: 64px 0 48px; background: #F4F5F8; }
.tmb-site .tm-sec--bare { padding: 0; }
/* Elementor shrank the referral panel to its own width and centred it. */
.tmb-site .tm-sec--refer > * { width: fit-content; }
.tmb-site .tm-sec--refer {
	padding: 60px 20px 96px;
	background: radial-gradient(900px 420px at 15% -40px, rgba(245, 123, 32, .11), transparent 60%),
		radial-gradient(1100px 560px at 100% -20px, rgba(40, 48, 113, .13), transparent 55%),
		linear-gradient(180deg, #F4F5FB 0%, #FFFFFF 22%, #ECF0FB 100%);
}

/* ---------- Card on a plain section (Account pending approval) ---------- */
.tmb-site .tm-sec--narrow { padding: 70px 0; }
.tmb-site .tm-card {
	max-width: 580px; padding: 40px; text-align: center;
	background: #fff; border: 1px solid rgba(24, 24, 24, .15); border-radius: 16px;
}
.tmb-site .tm-card > * { margin: 0; }
.tmb-site .tm-card > * + * { margin-top: 18px; }
.tmb-site .tm-card h1 { color: var(--wp--preset--color--navy, #283071); font-size: 30px; font-weight: 700; line-height: 1.15; }
.tmb-site .tm-card p { color: #3A4A86; font-size: 16px; line-height: 1.65; }
.tmb-site .tm-card .wp-block-buttons { justify-content: center; }

/* ---------- My Account (from Elementor container e59d245's custom CSS) ---------- */
.tmb-site .tm-sec--account { padding: 60px 20px 80px; background: #E8EAF6; }
.tmb-site .tm-sec--account .woocommerce { width: 100%; }
/* The account dashboard was laid out under the kit's link type (18px/1.65): keep it here. */
.tm-sec--account a { font-family: Poppins, sans-serif; font-size: 18px; font-weight: 400; line-height: 1.65em; }
.tmb-site .tm-sec--account .woocommerce-MyAccount-navigation-link--edit-address { display: none !important; }
.tmb-site .tm-sec--account .woocommerce::before, .tmb-site .tm-sec--account .woocommerce::after { display: none !important; content: none !important; }
.tmb-site .tm-sec--account .tm-nav-toggle { display: none; }
@media (max-width: 880px) {
	.tmb-site .tm-sec--account .woocommerce { display: block !important; }
	.tmb-site .tm-sec--account .woocommerce-MyAccount-navigation { width: 100% !important; max-width: 100% !important; flex: none !important; margin: 0 0 16px !important; }
	.tmb-site .tm-sec--account .woocommerce-MyAccount-content { width: 100% !important; }
	.tmb-site .tm-sec--account .tm-nav-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 14px 18px; border: 0; border-radius: 12px; background: #283071; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
	.tmb-site .tm-sec--account .tm-nav-toggle .tm-nav-caret { transition: transform .2s ease; font-size: 14px; line-height: 1; }
	.tmb-site .tm-sec--account .woocommerce-MyAccount-navigation.tm-nav-open .tm-nav-caret { transform: rotate(180deg); }
	.tmb-site .tm-sec--account .woocommerce-MyAccount-navigation ul { display: none; margin-top: 8px; }
	.tmb-site .tm-sec--account .woocommerce-MyAccount-navigation.tm-nav-open ul { display: block; }
}
@media (max-width: 600px) {
	.tmb-site .tm-sec--account .woocommerce form .form-row-first,
	.tmb-site .tm-sec--account .woocommerce form .form-row-last { width: 100% !important; float: none !important; margin-right: 0 !important; }
}
.tmb-site .tm-sec--account .tm-nav-caret { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; font-size: 0 !important; }
.tmb-site .tm-sec--account .tm-nav-caret::after {
	content: ""; display: block; width: 16px; height: 16px; background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 8l7 7 7-7z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 8l7 7 7-7z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Tablet and phone: only the type steps down (as the Elementor
   kit did); padding and gaps stay. ---------- */
@media (max-width: 1024px) {
	.tmb-site .tm-sec--hero .tm-eyebrow { font-size: 28px; letter-spacing: -2px; }
	.tmb-site .tm-sec--hero h1 { font-size: 38px; }
}
@media (max-width: 767px) {
	.tmb-site .tm-sec--hero .tm-eyebrow { letter-spacing: -1px; }
	.tmb-site .tm-sec--hero h1 { font-size: 30px; }
}
