/*
Theme Name: New Motion
Theme URI: https://newmotion-physio.ch
Author: New Motion Physiotherapie
Author URI: https://newmotion-physio.ch
Description: Bespoke theme for New Motion Physiotherapie (Yehia Hassan, Winterthur). A rich single-page front page driven by React, plus an editorial blog and method-detail pages styled to match. Bilingual DE/EN content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newmotion
Tags: custom-menu, featured-images, translation-ready, blog, one-column
*/

/* =========================================================================
   The design tokens, layout and component styles live in assets/css/styles.css
   (enqueued before this file). Everything below is the WordPress-side chrome:
   the PHP header/footer, the editorial blog, comments and method pages — all
   built on the same custom properties so they stay in lockstep with the design.
   ========================================================================= */

body.nm-page {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--f-body);
	margin: 0;
}

/* ---- Shared PHP nav (blog / inner pages) ---- */
.nm-static-nav {
	position: sticky;
	top: 0;
}

/* ---- Page shell ---- */
.nm-shell {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 var(--pad-x);
}
.nm-main {
	padding-top: 92px;
	min-height: 60vh;
}

/* ---- Page / archive header ---- */
.nm-page-head {
	padding: 56px 0 40px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 56px;
}
.nm-eyebrow {
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 20px;
}
.nm-page-title {
	font-family: var(--f-display);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 0.98;
	font-size: clamp(40px, 6vw, 88px);
	margin: 0;
	max-width: 18ch;
}
.nm-page-title .italic { font-style: italic; }
.nm-page-sub {
	font-family: var(--f-display);
	font-size: clamp(20px, 2.2vw, 28px);
	line-height: 1.32;
	color: var(--ink-soft);
	margin: 22px 0 0;
	max-width: 46ch;
}

/* ---- Post list (blog index / archive) ---- */
.nm-post-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 64px var(--gutter);
	padding-bottom: 96px;
}
@media (max-width: 880px) {
	.nm-post-list { grid-template-columns: 1fr; gap: 48px; }
}
.nm-card { display: flex; flex-direction: column; }
.nm-card-media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--bg-2);
	margin-bottom: 22px;
}
.nm-card-media img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.nm-card:hover .nm-card-media img { transform: scale(1.04); }
.nm-card-media.is-empty {
	display: flex; align-items: center; justify-content: center;
	background:
		repeating-linear-gradient(45deg, var(--bg-2) 0 10px, transparent 10px 20px),
		var(--bg-2);
}
.nm-card-media.is-empty span {
	font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
	text-transform: uppercase; color: var(--ink-mute);
}
.nm-card-meta {
	display: flex; gap: 14px; align-items: center;
	font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
	text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px;
}
.nm-card-meta a { color: var(--accent); text-decoration: none; }
.nm-card-title {
	font-family: var(--f-display); font-weight: 400;
	letter-spacing: -0.01em; line-height: 1.04;
	font-size: clamp(26px, 2.6vw, 38px); margin: 0 0 14px;
}
.nm-card-title a { color: inherit; text-decoration: none; }
.nm-card-title a:hover { color: var(--accent); }
.nm-card-excerpt {
	font-size: 16px; line-height: 1.58; color: var(--ink-soft);
	margin: 0 0 18px; max-width: 52ch;
}
.nm-readmore {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
	text-transform: uppercase; color: var(--ink);
	text-decoration: none; margin-top: auto;
}
.nm-readmore:hover { color: var(--accent); }
.nm-readmore .arr { transition: transform .25s; }
.nm-readmore:hover .arr { transform: translateX(4px); }

/* ---- Single post ---- */
.nm-article { padding-bottom: 96px; }
.nm-article-head {
	max-width: 60ch; margin: 0 auto; text-align: center;
	padding: 8px 0 48px;
}
.nm-article-head .nm-eyebrow { margin-bottom: 18px; }
.nm-article-title {
	font-family: var(--f-display); font-weight: 400;
	letter-spacing: -0.02em; line-height: 1.0;
	font-size: clamp(38px, 5.5vw, 76px); margin: 0;
}
.nm-article-meta {
	display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
	font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
	text-transform: uppercase; color: var(--ink-mute); margin-top: 28px;
}
.nm-article-meta a { color: var(--accent); text-decoration: none; }
.nm-hero-media {
	margin: 0 0 56px; border-radius: var(--radius-lg); overflow: hidden;
	background: var(--bg-2); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 18px 50px rgba(0,0,0,.12);
	aspect-ratio: 16/7;
}
.nm-hero-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }

.nm-prose {
	max-width: 68ch; margin: 0 auto;
	font-size: 18px; line-height: 1.7; color: var(--ink-soft);
}
.nm-prose > * + * { margin-top: 1.4em; }
.nm-prose p { margin: 0; }
.nm-prose h2 {
	font-family: var(--f-display); font-weight: 400; color: var(--ink);
	font-size: clamp(28px, 3vw, 40px); line-height: 1.1;
	letter-spacing: -0.01em; margin-top: 1.8em;
}
.nm-prose h3 {
	font-family: var(--f-display); font-weight: 400; color: var(--ink);
	font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; margin-top: 1.6em;
}
.nm-prose a { color: var(--accent); text-underline-offset: 3px; }
.nm-prose img, .nm-prose figure { border-radius: var(--radius); }
.nm-prose blockquote {
	margin: 1.6em 0; padding: 6px 0 6px 28px;
	border-left: 2px solid var(--accent);
	font-family: var(--f-display); font-style: italic;
	font-size: clamp(22px, 2.4vw, 30px); line-height: 1.32; color: var(--ink);
}
.nm-prose ul, .nm-prose ol { padding-left: 1.3em; }
.nm-prose li + li { margin-top: .5em; }
.nm-prose code {
	font-family: var(--f-mono); font-size: .86em;
	background: var(--bg-2); padding: 2px 6px; border-radius: 6px;
}
.nm-prose pre {
	background: var(--ink); color: var(--bg); padding: 22px; border-radius: var(--radius);
	overflow: auto; font-family: var(--f-mono); font-size: 14px; line-height: 1.5;
}
.nm-prose pre code { background: none; padding: 0; color: inherit; }

.nm-tags {
	max-width: 68ch; margin: 56px auto 0; padding-top: 28px;
	border-top: 1px solid var(--line);
	display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.nm-tag {
	font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em;
	color: var(--ink-soft); text-decoration: none;
	border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px;
}
.nm-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Author / share footer of a post ---- */
.nm-post-foot {
	max-width: 68ch; margin: 48px auto 0; padding-top: 36px;
	border-top: 1px solid var(--line);
	display: flex; gap: 20px; align-items: center;
}
.nm-author-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-2); }
.nm-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nm-author-name { font-family: var(--f-display); font-size: 24px; }
.nm-author-bio { font-size: 14.5px; color: var(--ink-soft); margin-top: 4px; max-width: 52ch; }

/* ---- Post navigation (prev/next) ---- */
.nm-postnav {
	max-width: 68ch; margin: 56px auto 0; padding-top: 36px;
	border-top: 1px solid var(--line);
	display: flex; justify-content: space-between; gap: 24px;
}
.nm-postnav a { max-width: 46%; text-decoration: none; color: inherit; }
.nm-postnav .dir {
	display: block; font-family: var(--f-mono); font-size: 10.5px;
	letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px;
}
.nm-postnav .ttl { font-family: var(--f-display); font-size: clamp(20px,2.2vw,28px); line-height: 1.08; }
.nm-postnav a:hover .ttl { color: var(--accent); }
.nm-postnav .next { text-align: right; margin-left: auto; }

/* ---- Pagination ---- */
.nm-pagination {
	display: flex; justify-content: center; gap: 8px; padding: 16px 0 96px;
}
.nm-pagination .page-numbers {
	min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
	padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px;
	font-family: var(--f-mono); font-size: 13px; color: var(--ink); text-decoration: none;
}
.nm-pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nm-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Comments ---- */
.nm-comments { max-width: 68ch; margin: 64px auto 0; padding-top: 40px; border-top: 1px solid var(--ink); }
.nm-comments-title { font-family: var(--f-display); font-size: clamp(26px,3vw,38px); margin: 0 0 32px; }
.nm-comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.nm-comment-list .children { list-style: none; margin: 24px 0 0 28px; padding-left: 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.nm-comment-head { display: flex; gap: 14px; align-items: baseline; margin-bottom: 8px; }
.nm-comment-author { font-family: var(--f-display); font-size: 20px; }
.nm-comment-author a { color: inherit; text-decoration: none; }
.nm-comment-date { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-mute); }
.nm-comment-text { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.nm-comment-text p { margin: 0 0 .8em; }
.nm-comment-reply { margin-top: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.nm-comment-reply a { color: var(--accent); text-decoration: none; }
.nm-comment-form { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.nm-comment-form .nm-eyebrow { margin: 0; }
.nm-comment-form label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.nm-comment-form input[type="text"],
.nm-comment-form input[type="email"],
.nm-comment-form input[type="url"],
.nm-comment-form textarea {
	width: 100%; box-sizing: border-box; background: var(--bg-2); border: 1px solid var(--line-strong);
	border-radius: var(--radius); padding: 14px 16px; font-family: var(--f-body); font-size: 16px; color: var(--ink);
}
.nm-comment-form textarea { min-height: 140px; resize: vertical; }
.nm-comment-form input:focus, .nm-comment-form textarea:focus { outline: none; border-color: var(--accent); }

/* ---- 404 / empty states ---- */
.nm-empty { text-align: center; padding: 80px 0 120px; max-width: 52ch; margin: 0 auto; }
.nm-empty .big { font-family: var(--f-display); font-size: clamp(64px, 12vw, 160px); line-height: 0.9; color: var(--accent); margin: 0 0 24px; }
.nm-empty p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 32px; }

/* ---- Search form ---- */
.nm-searchform { display: flex; gap: 10px; max-width: 480px; margin: 24px auto 0; }
.nm-searchform input[type="search"] {
	flex: 1; background: var(--bg-2); border: 1px solid var(--line-strong);
	border-radius: var(--radius); padding: 14px 16px; font-family: var(--f-body); font-size: 16px; color: var(--ink);
}
.nm-searchform input[type="search"]:focus { outline: none; border-color: var(--accent); }

/* ---- PHP footer (blog / inner pages) reuses .foot styles from styles.css ---- */

/* =========================================================================
   Method-detail page (template-method.php). Ported from the design's
   methode.html so it renders identically inside WordPress.
   ========================================================================= */
.mpage { padding-top: 92px; }
.m-container { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad-x); }
.m-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin: 40px 0 0; }
.m-back:hover { color: var(--ink); }
.m-head { padding: 28px 0 56px; border-bottom: 1px solid var(--line); }
.m-eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.m-title { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.02em; line-height: 0.96; font-size: clamp(44px, 7vw, 104px); margin: 0; max-width: 16ch; }
.m-body { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; padding: 64px 0 40px; align-items: start; }
.m-lead { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.32; color: var(--ink); margin: 0 0 30px; letter-spacing: -0.01em; }
.m-detail { font-size: 16.5px; line-height: 1.62; color: var(--ink-soft); margin: 0; max-width: 60ch; }
.m-facts { display: flex; gap: 48px; margin: 36px 0 32px; flex-wrap: wrap; }
.m-fact dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.m-fact dd { margin: 0; font-size: 16px; color: var(--ink); max-width: 24ch; }
.m-indik { margin: 36px 0; }
.m-indik-label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; }
.m-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 54ch; }
.m-list li { position: relative; padding-left: 30px; font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.m-list li::before { content: "\2192"; position: absolute; left: 0; top: 1px; color: var(--accent); font-family: var(--f-mono); font-size: 15px; }
.m-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.mpage .btn, .nav .btn { white-space: nowrap; }
.m-media { position: sticky; top: 100px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: var(--bg-2); box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 12px 28px rgba(0,0,0,0.10), 0 28px 60px rgba(0,0,0,0.10); }
.m-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-nav { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 36px 0 96px; }
.m-nav a { max-width: 46%; }
.m-nav .dir { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; display: block; }
.m-nav .nm { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 34px); line-height: 1.05; }
.m-nav a:hover .nm { color: var(--accent); }
.m-nav .next { text-align: right; margin-left: auto; }
@media (max-width: 860px) {
	.m-body { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 24px; }
	.m-media { position: static; aspect-ratio: 3 / 2; order: -1; }
}

@media (max-width: 600px) {
	.nm-main { padding-top: 72px; }
	.nm-page-head { padding: 36px 0 24px; margin-bottom: 32px; }
	.nm-page-sub { font-size: 18px; }
	.nm-hero-media { margin-bottom: 32px; border-radius: var(--radius); }
	.nm-prose { font-size: 16px; }
	.nm-article-head { padding: 4px 0 32px; }
	.nm-postnav { flex-direction: column; gap: 16px; }
	.nm-postnav a { max-width: 100%; }
	.nm-postnav .next { text-align: left; margin-left: 0; }
	.nm-pagination { flex-wrap: wrap; }
	.nm-comment-list .children { margin-left: 12px; padding-left: 12px; }
}
