/* ==========================================================================
   Tana Meishi — layout and components
   Colors, fonts and radius come from theme.json presets, so every style
   variation (会社・士業・保険/FP・コーチ・クリエイター) reuses this file.
   ========================================================================== */

/* Latin display faces (self-hosted, ~20KB each; only the faces a page uses are downloaded). */
@font-face { font-family: "TM Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "TM Barlow"; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "TM Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "TM Cormorant"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "TM Quicksand"; src: url("../fonts/quicksand-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "TM Quicksand"; src: url("../fonts/quicksand-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "TM Outfit"; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "TM Outfit"; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "TM Playfair"; src: url("../fonts/playfair-display-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "TM Playfair"; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* Presets are declared on body in WP 6.5 (on :root from 6.6), so alias them on body. */
body {
	--tm-primary: var(--wp--preset--color--primary);
	--tm-soft: var(--wp--preset--color--primary-soft);
	--tm-accent: var(--wp--preset--color--accent);
	--tm-surface: var(--wp--preset--color--surface);
	--tm-base: var(--wp--preset--color--base);
	--tm-text: var(--wp--preset--color--contrast);
	--tm-muted: var(--wp--preset--color--muted);
	--tm-border: var(--wp--preset--color--border);
	--tm-radius: var(--wp--custom--radius, 12px);
	--tm-radius-sm: var(--wp--custom--radius-small, 8px);
	--tm-shadow: var(--wp--custom--shadow, 0 8px 24px rgba(20, 30, 50, 0.08));
	--tm-heading: var(--wp--custom--heading-font, inherit);
	--tm-display: var(--wp--custom--display-font, inherit);
	--tm-display-weight: var(--wp--custom--display-weight, 700);
	--tm-display-style: var(--wp--custom--display-style, normal);
	--tm-curve: var(--wp--custom--curve, 0px);
}

/* ---- Page frame -------------------------------------------------------- */

h1, h2, h3, h4,
.tm-hero-lead,
.tm-lead,
.tm-profile-name { word-break: auto-phrase; text-wrap: balance; }

.tm-demo-bar {
	padding: 0.35rem 1rem;
	background: var(--tm-text);
	color: #fff;
	font-size: 0.75rem;
	text-align: center;
	letter-spacing: 0.04em;
}

.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.tm-main { margin: 0; }
/* Full-width sections inside the (padded) post content keep the root padding. */
.has-global-padding > .alignfull.has-global-padding {
	padding-right: var(--wp--style--root--padding-right);
	padding-left: var(--wp--style--root--padding-left);
}
.tm-content > .alignfull { margin-block-start: 0; }
.tm-content > .alignfull + :not(.alignfull) { margin-block-start: var(--wp--preset--spacing--50); }

/* ---- Header ------------------------------------------------------------ */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
	/* Solid background: a backdrop-filter here would trap the mobile menu overlay inside the header. */
	background: var(--tm-base);
	border-bottom: 1px solid var(--tm-border);
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; }
}
.tm-header { padding-block: 0.7rem; }
.tm-header-inner { gap: 1.25rem; }
.tm-brand { gap: 0.6rem; min-width: 0; }
.tm-brand .wp-block-site-title { margin: 0; line-height: 1.3; }
.tm-brand .wp-block-site-title a { text-decoration: none; }
.tm-header-right { gap: 1.5rem; }
.tm-nav .wp-block-navigation-item__content { padding-block: 0.25rem; text-decoration: none; }
.tm-nav .wp-block-navigation__container { gap: 1.4rem; }
/* Mobile menu overlay */
.tm-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1rem clamp(1rem, 4vw, 2rem);
	background: var(--tm-base);
	color: var(--tm-text);
}
.tm-nav .is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch !important; padding-top: 3.25rem; }
.tm-nav .is-menu-open .wp-block-navigation__container { width: 100%; gap: 0 !important; align-items: stretch !important; }
.tm-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--tm-border); }
.tm-nav .is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: 1rem 0.25rem !important; font-size: 1.1rem; font-weight: 700; text-align: left; }
.tm-header-tel { text-align: right; }
.tm-header-tel p { margin: 0; line-height: 1.25; }
.tm-header-tel-number { font-weight: 700; font-size: 1.125rem; letter-spacing: 0.04em; color: var(--tm-primary); }
.tm-header-hours { font-size: 0.72rem; color: var(--tm-muted); }
.tm-header-cta .wp-block-button__link { padding: 0.65em 1.4em; font-size: 0.9rem; }
@media (max-width: 1100px) { .tm-header-tel { display: none !important; } }
@media (max-width: 781px) { .tm-header-cta { display: none !important; } }

/* ---- Page title band --------------------------------------------------- */

.tm-page-hero {
	background: var(--tm-surface);
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
	border-bottom: 1px solid var(--tm-border);
}
.tm-page-hero .wp-block-post-title { margin: 0; }
.tm-page-hero .wp-block-post-title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3px;
	margin-top: 1rem;
	background: var(--tm-accent);
}
.tm-post-date { color: var(--tm-muted); font-size: 0.875rem; }

/* ---- Sections ---------------------------------------------------------- */

.tm-section { padding-block: var(--wp--preset--spacing--60); }
.tm-section > .tm-section-title,
.tm-section > .tm-lead { text-align: center; margin-inline: auto; }
.tm-eyebrow {
	margin-bottom: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tm-primary);
}
.tm-section-title { margin-top: 0.35rem; }
.tm-lead { color: var(--tm-muted); max-width: 42em; }
.tm-note { font-size: 0.85rem; color: var(--tm-muted); text-align: center; }
.tm-grid { gap: 1.25rem; margin-top: 2.25rem !important; }
.tm-grid.tm-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tm-grid.tm-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tm-grid.tm-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
	.tm-grid.tm-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.tm-grid.tm-cols-2,
	.tm-grid.tm-cols-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.tm-grid.tm-cols-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Cards --------------------------------------------------------------- */

.tm-card {
	background: var(--tm-base);
	border: 1px solid var(--tm-border);
	border-radius: var(--tm-radius);
	padding: clamp(1.4rem, 3vw, 2rem);
}
.tm-card > * { margin-block: 0; }
.tm-card > * + * { margin-block-start: 0.75rem; }
.tm-card h3 { font-size: 1.15rem; }
.tm-icon { margin: 0 0 0.25rem !important; }
.tm-icon img {
	display: block;
	width: 56px;
	height: 56px;
	padding: 14px;
	box-sizing: border-box;
	border-radius: 50%;
	background: var(--tm-primary);
}
.tm-card-price {
	margin-top: 1rem !important;
	padding-top: 0.85rem;
	border-top: 1px dashed var(--tm-border);
	font-weight: 700;
	color: var(--tm-primary);
}
.tm-link-card { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.tm-link-card:hover { box-shadow: var(--tm-shadow); transform: translateY(-2px); }
.tm-more a { font-weight: 700; text-decoration: none; }
.tm-more a::after { content: " →"; }

/* ---- Hero (front page) ---------------------------------------------------- */

.tm-hero { padding-block: clamp(3rem, 8vw, 6rem); }
.tm-hero-columns { align-items: center !important; gap: clamp(2rem, 5vw, 4rem); }
.tm-hero-title { margin-top: 0.6rem; font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.6rem); line-height: 1.4; }
@media (min-width: 782px) {
	.tm-hero-columns > .wp-block-column:first-child { flex: 0 0 54% !important; }
}
.tm-hero-lead { font-size: 1.0625rem; color: var(--tm-muted); }
.tm-badges { gap: 0.5rem; margin-block: 1.25rem; }
.tm-badge {
	margin: 0;
	padding: 0.3rem 0.95rem;
	background: var(--tm-base);
	border: 1px solid var(--tm-border);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
}
.tm-hero .wp-block-buttons { margin-top: 1.75rem; }
.tm-hero-image { margin: 0; }
.tm-hero-image img { width: 100%; height: auto; border-radius: var(--tm-radius); }

/* ---- Reasons & steps --------------------------------------------------- */

.tm-reasons { counter-reset: tm-reason; }
.tm-reason {
	counter-increment: tm-reason;
	padding: 1.75rem;
	background: var(--tm-base);
	border: 1px solid var(--tm-border);
	border-radius: var(--tm-radius);
}
.tm-reason::before {
	content: counter(tm-reason, decimal-leading-zero);
	display: block;
	font-family: var(--tm-display);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
	color: var(--tm-primary);
	margin-bottom: 0.75rem;
}
.tm-reason > * { margin-block: 0; }
.tm-reason > * + * { margin-block-start: 0.6rem; }
.tm-reason h3 { font-size: 1.1rem; }

.tm-steps { counter-reset: tm-step; }
.tm-step {
	counter-increment: tm-step;
	position: relative;
	padding: 1.5rem;
	background: var(--tm-base);
	border: 1px solid var(--tm-border);
	border-radius: var(--tm-radius);
}
.tm-step::before {
	content: "STEP " counter(tm-step);
	display: inline-block;
	padding: 0.15rem 0.7rem;
	border-radius: 999px;
	background: var(--tm-primary);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
}
.tm-step > * { margin-block: 0; }
.tm-step > * + * { margin-block-start: 0.6rem; }
.tm-step h3 { font-size: 1.05rem; margin-top: 0.75rem !important; }
.tm-step p { font-size: 0.95rem; }

/* ---- Profile ------------------------------------------------------------- */

.tm-profile { gap: clamp(1.5rem, 5vw, 4rem) !important; margin-top: 2.25rem !important; align-items: flex-start !important; }
@media (min-width: 782px) {
	.tm-profile > .wp-block-column:first-child { flex: 0 0 36% !important; }
}
.tm-profile-photo { margin: 0; }
.tm-profile-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--tm-radius); }
.tm-profile-role { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--tm-primary); letter-spacing: 0.08em; }
.tm-profile-name { margin-top: 0.2rem !important; font-family: var(--tm-heading); font-size: 1.75rem; font-weight: 700; letter-spacing: 0.08em; }
.tm-timeline { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--tm-border); }
.tm-timeline-item { position: relative; margin: 0.4rem 0; padding-left: 1.1rem; font-size: 0.95rem; }
.tm-timeline-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.75em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tm-accent);
}

/* ---- Tables -------------------------------------------------------------- */

.tm-company-table,
.tm-price-table { margin-top: 2rem; }
.tm-company-table table,
.tm-price-table table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--tm-border); }
.tm-company-table th,
.tm-company-table td,
.tm-price-table th,
.tm-price-table td {
	border: 0;
	border-bottom: 1px solid var(--tm-border);
	padding: 1.1rem 1rem;
	text-align: left;
	vertical-align: top;
}
.tm-company-table th { width: 28%; color: var(--tm-muted); font-weight: 700; font-size: 0.95rem; }
.tm-price-table th { font-weight: 700; }
.tm-price-table td { text-align: right; font-weight: 700; color: var(--tm-primary); white-space: nowrap; }
.tm-price-table td small { display: block; font-weight: 400; color: var(--tm-muted); }
@media (max-width: 600px) {
	.tm-company-table th,
	.tm-company-table td { display: block; width: 100%; }
	.tm-company-table th { padding-bottom: 0; border-bottom: 0; }
}

/* ---- FAQ ----------------------------------------------------------------- */

.tm-faq {
	margin-top: 0.75rem !important;
	background: var(--tm-base);
	border: 1px solid var(--tm-border);
	border-radius: var(--tm-radius-sm);
}
.tm-section-title + .tm-faq,
.tm-lead + .tm-faq { margin-top: 2rem !important; }
.tm-faq summary {
	position: relative;
	padding: 1.1rem 3rem 1.1rem 1.25rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.tm-faq summary::-webkit-details-marker { display: none; }
.tm-faq summary::before { content: "Q"; margin-right: 0.7rem; color: var(--tm-primary); font-family: var(--tm-heading); }
.tm-faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--tm-primary); }
.tm-faq[open] summary::after { content: "−"; }
.tm-faq > p { margin: 0; padding: 0 1.25rem 1.25rem 3.1rem; color: var(--tm-muted); }

/* ---- Case studies & works ------------------------------------------------ */

.tm-case-meta { font-size: 0.8rem; font-weight: 700; color: var(--tm-primary); letter-spacing: 0.06em; }
.tm-case-row { font-size: 0.95rem; }
.tm-case-row strong {
	display: inline-block;
	min-width: 3.4em;
	margin-right: 0.6rem;
	padding: 0.05rem 0.5rem;
	border-radius: 4px;
	background: var(--tm-soft);
	color: var(--tm-primary);
	font-size: 0.75rem;
	text-align: center;
}
.tm-case-result strong { background: var(--tm-primary); color: #fff; }

.tm-work > * { margin-block: 0; }
.tm-work-image { margin: 0; }
.tm-work-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--tm-radius); }
.tm-work-meta { margin-top: 0.85rem !important; font-size: 0.75rem; letter-spacing: 0.14em; color: var(--tm-muted); }
.tm-work h3 { margin-top: 0.2rem !important; font-size: 1rem; }

/* ---- Text sections ------------------------------------------------------- */

.tm-signature { text-align: right; font-weight: 700; font-family: var(--tm-heading); }

/* ---- Contact ------------------------------------------------------------- */

.tm-contact-box {
	margin-top: 2rem;
	margin-bottom: 3rem;
	padding: 2rem 1.5rem;
	text-align: center;
	background: var(--tm-surface);
	border-radius: var(--tm-radius);
}
.tm-contact-box > * { margin-block: 0; }
.tm-contact-label { font-weight: 700; color: var(--tm-muted); font-size: 0.9rem; }
.tm-contact-box .wp-block-buttons { justify-content: center; margin-block: 0.25rem !important; }
.tm-tel-button .wp-block-button__link {
	padding: 0.1em 0.2em;
	background: transparent;
	color: var(--tm-primary);
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.25rem);
	letter-spacing: 0.06em;
}
.tm-tel-button .wp-block-button__link:hover { background: transparent; color: var(--tm-text); }
.tm-contact-hours { font-size: 0.875rem; color: var(--tm-muted); }

/* Contact Form 7 */
.wpcf7 { margin-top: 1.5rem; }
.wpcf7 form > p,
.wpcf7 .tm-field { margin: 0 0 1.4rem; }
.wpcf7 label { display: block; font-weight: 700; }
.tm-required,
.tm-optional {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0 0.45rem;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 700;
	vertical-align: 0.15em;
}
.tm-required { background: var(--tm-primary); color: #fff; }
.tm-optional { background: var(--tm-border); color: var(--tm-muted); }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	margin-top: 0.4rem;
	padding: 0.85rem 1rem;
	box-sizing: border-box;
	font: inherit;
	color: var(--tm-text);
	background: var(--tm-base);
	border: 1px solid var(--tm-border);
	border-radius: var(--tm-radius-sm);
}
.wpcf7 textarea { min-height: 10rem; }
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus { outline: 2px solid var(--tm-primary); outline-offset: 1px; border-color: transparent; }
.wpcf7 .wpcf7-acceptance { font-weight: 400; }
.wpcf7 input[type="submit"] {
	display: block;
	margin: 0.5rem auto 0;
	padding: 1rem 3rem;
	border: 0;
	border-radius: 999px;
	background: var(--tm-primary);
	color: #fff;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.08em;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--tm-text); }

/* ---- CTA band -------------------------------------------------------------- */

.tm-cta {
	padding-block: var(--wp--preset--spacing--60);
	background: var(--tm-primary);
	color: #fff;
	text-align: center;
}
.tm-cta .tm-eyebrow { color: rgba(255, 255, 255, 0.72); }
.tm-cta .tm-cta-title { margin-top: 0.35rem; color: #fff; }
.tm-cta .tm-cta-lead { color: rgba(255, 255, 255, 0.86); }
.tm-cta .wp-block-buttons { justify-content: center; gap: 0.85rem; margin-top: 2rem; }
.tm-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--tm-accent); color: var(--tm-text); }
.tm-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: #fff; }
.tm-cta .is-style-outline .wp-block-button__link { border: 2px solid rgba(255, 255, 255, 0.85); color: #fff; letter-spacing: 0.06em; }
.tm-cta .is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); }

/* ---- Footer ---------------------------------------------------------------- */

.tm-footer {
	padding-block: 3.5rem 2rem;
	background: var(--tm-text);
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.9rem;
}
.tm-footer a { color: inherit; }
.tm-footer .wp-block-site-title a { color: #fff; text-decoration: none; }
.tm-footer p { margin: 0.2rem 0; }
.tm-footer-columns { gap: 2rem; }
.tm-footer .wp-block-navigation { gap: 0.6rem; }
.tm-footer .wp-block-navigation a { text-decoration: none; }
.tm-footer-links { margin-top: 1rem !important; }
.is-style-tm-link .wp-block-button__link {
	padding: 0;
	background: none;
	color: inherit;
	font-size: 0.85rem;
	font-weight: 400;
	letter-spacing: 0;
	text-decoration: underline;
	border-radius: 0;
}
.is-style-tm-link .wp-block-button__link:hover { background: none; opacity: 0.8; }
.tm-copyright {
	margin-top: 2.5rem !important;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 0.78rem;
	opacity: 0.75;
}

/* ---- Mobile fixed buttons ---------------------------------------------------- */

.tm-mobile-cta { display: none; }
@media (max-width: 781px) {
	.tm-mobile-cta {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--tm-base) 96%, transparent);
		border-top: 1px solid var(--tm-border);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
	}
	.tm-mobile-cta .wp-block-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
	.tm-mobile-cta .wp-block-button { width: 100%; }
	.tm-mobile-cta .wp-block-button__link { display: block; width: 100%; padding: 0.8em 0.5em; font-size: 0.95rem; text-align: center; }
	body { padding-bottom: 72px; }
}

/* ---- News list --------------------------------------------------------------- */

.tm-news-item { gap: 0.5rem 1.5rem; padding-block: 1rem; border-bottom: 1px solid var(--tm-border); }
.tm-news-item .wp-block-post-date { color: var(--tm-muted); font-size: 0.875rem; }
.tm-news-title { margin: 0; font-size: 1rem; }

/* ==========================================================================
   Gallery-inspired layer: split section headings with a large English label,
   hero variants, linked cards with tags, entrance cards, figures band.
   ========================================================================== */

/* ---- Section heading ------------------------------------------------------- */

.tm-head { margin-bottom: clamp(2rem, 4vw, 3.25rem) !important; }
.tm-head + * { margin-top: 0 !important; }
.tm-head-title > * { margin-block: 0 !important; }
.tm-head .tm-eyebrow {
	font-family: var(--tm-display);
	font-weight: var(--tm-display-weight);
	font-style: var(--tm-display-style);
	font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.75rem);
	line-height: 1;
	letter-spacing: 0.005em;
	text-transform: none;
	color: var(--tm-primary);
}
.tm-head .tm-section-title {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-top: 1rem !important;
	font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
}
.tm-head .tm-section-title::before {
	content: "";
	flex: 0 0 1.75rem;
	height: 2px;
	background: var(--tm-accent);
}
.tm-head .tm-lead { margin: 0; color: var(--tm-muted); }
@media (min-width: 782px) {
	.tm-head--split {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
		align-items: end;
		gap: 1.5rem clamp(2rem, 5vw, 5rem);
	}
	.tm-head--split .tm-lead { padding-bottom: 0.35rem; }
}
.tm-head:not(.tm-head--split) .tm-lead { margin-top: 1rem; }

/* ---- Page title band ------------------------------------------------------- */

.tm-page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.tm-page-label {
	margin: 0;
	font-family: var(--tm-display);
	font-weight: var(--tm-display-weight);
	font-style: var(--tm-display-style);
	font-size: clamp(2.8rem, 1.8rem + 4vw, 5.25rem);
	line-height: 1;
	color: var(--tm-primary);
}
.tm-page-label + .wp-block-post-title {
	margin-top: 1rem !important;
	font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
}
.tm-page-label + .wp-block-post-title::after { display: none; }
/* The page title already carries the English label: skip it on the first section. */
.tm-page-hero + .tm-content > .tm-section:first-child .tm-head .tm-eyebrow { display: none; }
.tm-page-hero + .tm-content > .tm-section:first-child .tm-head .tm-section-title { margin-top: 0 !important; }

/* ---- Hero variants --------------------------------------------------------- */

.tm-hero { position: relative; overflow: hidden; }
.tm-hero-eyebrow {
	display: inline-block;
	padding: 0.25rem 0.85rem;
	border: 1px solid var(--tm-primary);
	border-radius: var(--tm-radius-sm);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
}
.tm-hero-title { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.1rem) !important; line-height: 1.38; }

.tm-hero--center { text-align: center; padding-bottom: 0; }
.tm-hero--center .tm-hero-copy { max-width: 46rem; margin-inline: auto; }
.tm-hero--center .tm-badges { justify-content: center; }
.tm-hero--center .tm-hero-image { max-width: 1040px; margin: clamp(2rem, 4vw, 3rem) auto 0; }
.tm-hero--center .tm-hero-image img { border-radius: 0; }
@media (max-width: 781px) {
	/* Wide scene: crop the sides on phones so the people stay readable. */
	.tm-hero--center .tm-hero-image { width: 140%; max-width: none; margin-left: -20% !important; margin-right: 0 !important; }
}

.tm-mosaic {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-template-rows: repeat(5, clamp(3.5rem, 6vw, 5.5rem));
	gap: 0.75rem;
}
.tm-mosaic > * { margin: 0 !important; }
.tm-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--tm-radius); }
.tm-mosaic-item--1 { grid-column: 1 / 5; grid-row: 1 / 4; }
.tm-mosaic-item--2 { grid-column: 5 / 7; grid-row: 1 / 3; }
.tm-mosaic-item--3 { grid-column: 5 / 7; grid-row: 3 / 6; }
.tm-mosaic-item--4 { grid-column: 1 / 5; grid-row: 4 / 6; }
.tm-mosaic figure { height: 100%; }

.tm-vertical {
	position: absolute;
	top: 50%;
	right: clamp(1rem, 2.5vw, 2.5rem);
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin: 0;
	transform: translateY(-50%);
	writing-mode: vertical-rl;
	white-space: nowrap;
	font-family: var(--tm-display);
	font-style: var(--tm-display-style);
	font-size: 0.78rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--tm-muted);
}
.tm-vertical::after { content: ""; width: 1px; height: 4.5rem; background: currentColor; opacity: 0.6; }
@media (max-width: 1279px) { .tm-vertical { display: none; } }

/* ---- Arch-shaped tinted sections (style variations set --tm-curve) --------- */

.tm-content > .tm-section.has-surface-background-color {
	border-top-left-radius: 50% var(--tm-curve);
	border-top-right-radius: 50% var(--tm-curve);
}

/* ---- Cards with tags and a round arrow link ------------------------------- */

.tm-tags { gap: 0.35rem; }
.tm-tag {
	margin: 0;
	padding: 0.05rem 0.6rem;
	border: 1px solid currentColor;
	border-radius: var(--tm-radius-sm);
	color: var(--tm-primary);
	font-size: 0.72rem;
	font-weight: 700;
}
.tm-card--link,
.tm-entry { position: relative; padding-bottom: 4.75rem !important; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.tm-card--link:hover,
.tm-entry:hover { box-shadow: var(--tm-shadow); transform: translateY(-2px); }
.tm-card-link { position: absolute; right: 1.25rem; bottom: 1.25rem; margin: 0 !important; }
.tm-card-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--tm-text);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
}
.tm-card-link a::before { content: ""; position: absolute; inset: -100vmax; }
.tm-card--link,
.tm-entry { overflow: hidden; }
.tm-card-link a::after {
	content: "→";
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--tm-accent);
	color: var(--tm-text);
	font-size: 1rem;
	transition: transform 0.2s ease;
}
.tm-card--link:hover .tm-card-link a::after,
.tm-entry:hover .tm-card-link a::after { transform: translateX(3px); }

/* ---- Entrance cards ("which one are you?") ----------------------------------- */

.tm-section--entries { position: relative; z-index: 1; margin-top: clamp(-4rem, -5vw, -2rem) !important; padding-top: 0; }
.tm-entries { gap: 1rem; }
.tm-entry {
	padding: 1.75rem 1.75rem 4.75rem;
	border-radius: var(--tm-radius);
	background: var(--tm-base);
	border: 2px solid var(--tm-primary);
}
.tm-entry--2 { border-color: var(--tm-accent); }
.tm-entry--3 { border-color: var(--tm-text); }
.tm-entry > * { margin-block: 0; }
.tm-entry > * + * { margin-block-start: 0.6rem; }
.tm-entry-label {
	display: inline-block;
	padding: 0.1rem 0.7rem;
	border-radius: 999px;
	background: var(--tm-soft);
	color: var(--tm-primary);
	font-size: 0.75rem;
	font-weight: 700;
}
.tm-entry-title { font-size: 1.3rem; margin-top: 0.9rem !important; }

/* ---- Figures band -------------------------------------------------------- */

.tm-stats { gap: 0 !important; border-top: 1px solid var(--tm-border); border-bottom: 1px solid var(--tm-border); }
.tm-stat { padding: clamp(1.5rem, 3vw, 2.25rem) 1.25rem; text-align: center; }
.tm-stat > * { margin: 0; }
@media (min-width: 782px) {
	.tm-stat + .tm-stat { border-left: 1px solid var(--tm-border); }
}
@media (max-width: 781px) {
	.tm-stat + .tm-stat { border-top: 1px solid var(--tm-border); }
}
.tm-stat-num {
	font-family: var(--tm-display);
	font-weight: var(--tm-display-weight);
	font-size: clamp(2.8rem, 2rem + 3vw, 4.25rem);
	line-height: 1;
	color: var(--tm-primary);
}
.tm-stat-num span {
	margin-left: 0.25rem;
	font-family: var(--tm-heading);
	font-size: 1rem;
	font-style: normal;
	font-weight: 700;
	color: var(--tm-text);
}
.tm-stat-label { margin-top: 0.75rem !important; font-size: 0.9rem; color: var(--tm-muted); }

/* ---- Customer voices ------------------------------------------------------ */

.tm-voices { gap: 1.25rem; }
.tm-voice {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 2rem 1.75rem 1.5rem;
	background: var(--tm-base);
	border: 1px solid var(--tm-border);
	border-radius: var(--tm-radius);
}
.tm-voice::before {
	content: "\201C";
	position: absolute;
	top: -0.2rem;
	right: 1.25rem;
	font-family: var(--tm-display);
	font-size: 5rem;
	line-height: 1;
	color: var(--tm-accent);
	opacity: 0.55;
}
.tm-voice > * { margin-block: 0; }
.tm-voice-tag {
	align-self: flex-start;
	padding: 0.1rem 0.7rem;
	border-radius: 999px;
	background: var(--tm-soft);
	color: var(--tm-primary);
	font-size: 0.75rem;
	font-weight: 700;
}
.tm-voice-text { margin-top: 1rem !important; flex: 1; line-height: 1.9; }
.tm-voice-name {
	margin-top: 1.25rem !important;
	padding-top: 0.9rem;
	border-top: 1px solid var(--tm-border);
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--tm-muted);
}

/* ---- Area & hours band ------------------------------------------------------ */

.tm-area { gap: 0 !important; border-top: 2px solid var(--tm-primary); }
.tm-area-item { padding: 1.5rem 1.25rem; border-bottom: 1px solid var(--tm-border); }
.tm-area-item > * { margin: 0; }
@media (min-width: 782px) {
	.tm-area-item { border-bottom: 0; }
	.tm-area-item + .tm-area-item { border-left: 1px solid var(--tm-border); }
}
.tm-area-label {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--tm-primary);
}
.tm-area-label::before {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-right: 0.5rem;
	border-radius: 50%;
	background: var(--tm-accent);
	vertical-align: 0.1em;
}
.tm-area-value { margin-top: 0.5rem !important; font-weight: 700; line-height: 1.7; word-break: auto-phrase; }
.tm-section--area .tm-grid { margin-top: 0 !important; }

/* ==========================================================================
   Alignment: every block in a section shares the wide column's left and right
   edges (1120px). Reading text keeps a comfortable measure but starts on the
   same left line instead of being centred in the narrower content column.
   ========================================================================== */

.tm-section.is-layout-constrained > .tm-price-table,
.tm-section.is-layout-constrained > .tm-company-table,
.tm-section.is-layout-constrained > .tm-faq,
.tm-section.is-layout-constrained > .tm-note {
	max-width: var(--wp--style--global--wide-size);
}
.tm-section.is-layout-constrained > p:not(.tm-note):not(.tm-lead),
.tm-section.is-layout-constrained > .tm-signature,
.tm-section.is-layout-constrained > .wp-block-heading:not(.tm-section-title),
.tm-section.is-layout-constrained > .wp-block-list {
	max-width: 46em;
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
	margin-right: auto !important;
}
.tm-section > .tm-signature { max-width: 46em; }
.tm-note { text-align: left; }
.tm-head + .tm-faq { margin-top: 0 !important; }
.tm-price-table th,
.tm-price-table td,
.tm-company-table th,
.tm-company-table td { padding-inline: 0 1rem; }
.tm-price-table td { padding-inline: 1rem 0; }
.tm-company-table td { padding-inline: 0; }

/* Contact page: lead and phone on the left, form on the right. */
.tm-contact-columns { gap: clamp(2rem, 5vw, 4.5rem) !important; align-items: flex-start !important; }
@media (min-width: 782px) {
	.tm-contact-columns > .wp-block-column:first-child { flex: 0 0 38% !important; }
}
.tm-contact-lead { margin-top: 0; }
.tm-contact-columns .tm-contact-box { margin: 1.5rem 0 0; }
.tm-contact-form-title { margin-top: 0 !important; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); }
.tm-contact-form-lead { margin-top: 0.5rem; font-size: 0.875rem; color: var(--tm-muted); }
.tm-contact-columns .wpcf7 { margin-top: 1.25rem; }
.tm-contact-columns .wpcf7 input[type="submit"] { margin-left: 0; }

/* Cards in one row share their horizontal lines: prices and links sit on the
   bottom line, and case-study rows line up across cards (subgrid). */
.tm-card { display: flex; flex-direction: column; }
.tm-card > .tm-card-price,
.tm-link-card > .tm-more { margin-top: auto !important; }
.tm-card > :has(+ .tm-card-price),
.tm-link-card > :has(+ .tm-more) { margin-bottom: 1rem; }
@media (min-width: 782px) {
	@supports (grid-template-rows: subgrid) {
		.tm-grid > .tm-case {
			display: grid;
			grid-row: span 5;
			grid-template-rows: subgrid;
			row-gap: 0.75rem;
		}
		.tm-grid > .tm-case > * { margin: 0 !important; }
	}
}

.tm-photo-note { margin: 0.5rem 0 0 !important; font-size: 0.75rem; color: var(--tm-muted); }
.tm-profile-photo img { box-shadow: 0 0 0 1px var(--tm-border); }
