/*
Theme Name: Mind Motion
Theme URI: https://mindmotion.hr
Author: AI DIZAJN
Description: Jednostavna tema za Mind Motion (osobni trening, Osijek) — početna stranica i cjenik usluga. Radi uz plugin AID Sidrena cijena.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: mindmotion
License: Proprietary (AI DIZAJN); fonts SIL OFL
*/

:root {
	--ink: #231f20;
	--red: #d2232a;
	--red-dark: #a8191f;
	--plate: #ebebeb;
	--muted: #625c5d;
	--paper: #ffffff;
	--line: #d9d6d6;

	--f-head: 'Figtree', 'Segoe UI', Arial, sans-serif;
	--f-body: 'Source Sans 3', 'Myriad Pro', 'Segoe UI', Arial, sans-serif;

	--wrap: 1160px;
	--text: 720px;
	--gut: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.125rem/1.6 var(--f-body);
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--red); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-dark); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3, h4 {
	font-family: var(--f-head);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 .5em;
}

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--ink); color: #fff;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

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

.site-header { background: var(--paper); position: relative; z-index: 5; }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	min-height: 96px;
}
.site-logo { display: block; line-height: 0; }
.site-logo img, .site-logo svg { height: 72px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.site-nav a {
	font-family: var(--f-head); font-weight: 700; font-size: 1.0625rem;
	color: var(--ink); text-decoration: none; padding: 8px 0;
	background: linear-gradient(var(--red), var(--red)) left bottom / 0 3px no-repeat;
	transition: background-size .2s ease;
}
.site-nav a:hover { color: var(--ink); background-size: 100% 3px; }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { background-size: 100% 3px; }

.site-nav .nav-phone a {
	display: inline-block; padding: 10px 18px; background: var(--ink); color: #fff;
}
.site-nav .nav-phone a:hover { background: var(--red); color: #fff; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; gap: .5em;
	font-family: var(--f-head); font-weight: 700; font-size: 1.0625rem;
	padding: 15px 26px; text-decoration: none; border: 2px solid transparent;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }

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

.hero {
	position: relative; overflow: hidden;
	padding: clamp(48px, 9vw, 120px) 0 clamp(64px, 11vw, 150px);
}
.hero__text { position: relative; z-index: 2; max-width: 620px; }
.hero h1 {
	font-size: clamp(2.6rem, 7vw, 5.25rem);
	letter-spacing: -0.035em;
	margin-bottom: .35em;
}
.hero__who {
	font-family: var(--f-head); font-weight: 700; font-size: 1.125rem;
	margin: 0 0 .75em; padding-left: 16px; border-left: 4px solid var(--red);
}
.hero__lead {
	font-weight: 300; font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.5;
	color: var(--ink); margin: 0 0 2em; max-width: 34em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The big grey monogram — the one loud element, taken from the letterhead */
.hero__mark {
	position: absolute; z-index: 1;
	right: -4vw; bottom: -12%;
	width: min(64vw, 980px); height: auto; max-width: none;
	color: var(--plate);
	pointer-events: none;
}
.hero__mark .mm-bar { transform-box: fill-box; transform-origin: bottom; }

@media (prefers-reduced-motion: no-preference) {
	.hero__mark .mm-bar { animation: mm-lift .7s cubic-bezier(.2,.7,.2,1) both; }
	.hero__mark .mm-b1 { animation-delay: 0.05s; }
	.hero__mark .mm-b2 { animation-delay: 0.10s; }
	.hero__mark .mm-b3 { animation-delay: 0.15s; }
	.hero__mark .mm-b4 { animation-delay: 0.20s; }
	.hero__mark .mm-b5 { animation-delay: 0.25s; }
	.hero__mark .mm-b6 { animation-delay: 0.30s; }
}
@keyframes mm-lift {
	from { transform: translateY(40%); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

@media (max-width: 760px) {
	.hero__mark { display: none; }
}

/* ---------- Generic sections & editor content ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--rule { border-top: 1px solid var(--line); }

.entry-content { max-width: var(--text); }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-top: 1.6em; }
.entry-content h2:first-child, .entry-content > :first-child { margin-top: 0; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li { margin-bottom: .5em; }
.entry-content ul li::marker { color: var(--red); }
.entry-content strong { font-weight: 600; }
.entry-content .wp-block-button__link { background: var(--red); color: #fff; border-radius: 0; font-family: var(--f-head); font-weight: 700; }

/* Plain list of services on the home page: rows separated by rules */
.entry-content ul.is-style-rows, .entry-content .mm-rows {
	list-style: none; padding: 0; border-top: 2px solid var(--ink);
}
.entry-content .mm-rows li {
	margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.entry-content .mm-rows li strong {
	display: block; font-family: var(--f-head); font-weight: 800; font-size: 1.25rem; margin-bottom: 2px;
}

/* Tables (price list output, or any table in content) */
.entry-content .table-scroll, .entry-content .wp-block-table { overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.entry-content th, .entry-content td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content th { font-family: var(--f-head); font-weight: 700; border-bottom: 2px solid var(--ink); }
.entry-content td:last-child, .entry-content th:last-child { text-align: right; white-space: nowrap; }

/* ---------- Page header (Cjenik and other pages) ---------- */

.page-head { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 {
	font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 0;
	padding-left: 20px; border-left: 6px solid var(--red);
	position: relative; z-index: 2;
}
.page-head__mark {
	position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
	height: 180%; width: auto; max-width: none; color: var(--plate); z-index: 1; pointer-events: none;
}
.page-body { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.page-body .entry-content { max-width: 860px; }

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

.contact { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.contact h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: #fff; }
.contact__grid {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
	margin-top: 32px;
}
.contact__item { border-top: 3px solid var(--red); padding-top: 16px; }
.contact__label { display: block; font-size: 1rem; color: #cfcacb; margin-bottom: 4px; }
.contact__value { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.35rem); color: #fff; text-decoration: none; overflow-wrap: anywhere; }
a.contact__value:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }
@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Footer: echoes the letterhead's red bar ---------- */

.site-footer { padding: 40px 0 48px; font-size: .95rem; color: var(--muted); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.legal { position: relative; padding-left: 36px; line-height: 1.7; }
.legal::before { content: ""; position: absolute; left: 0; top: -6px; bottom: -48px; width: 20px; background: var(--red); }
.legal p { margin: 0; }
.legal .sep { color: var(--red); padding: 0 .45em; }
.footer-meta { text-align: right; }
.footer-meta a { color: var(--muted); }

/* ---------- Header on small screens ---------- */

@media (max-width: 600px) {
	.site-header__inner { min-height: 76px; }
	.site-logo img, .site-logo svg { height: 48px; }
	.site-nav .nav-phone { display: none; }
	.hero__actions .btn { flex: 1 1 100%; justify-content: center; }
	.footer-meta { text-align: left; }
	.legal::before { bottom: 0; top: 4px; }
}

/* ---------- Sticky call bar (mobile only) ---------- */

.call-bar { display: none; }

@media (max-width: 760px) {
	.call-bar {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		padding: 10px var(--gut);
		padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
		background: var(--ink); color: #fff;
		box-shadow: 0 -2px 14px rgba(0, 0, 0, .18);
	}
	.call-bar__text { line-height: 1.25; }
	.call-bar__text strong { display: block; font-family: var(--f-head); font-weight: 700; font-size: 1rem; }
	.call-bar__text span { font-size: .9rem; color: #cfcacb; }
	.call-bar__btn {
		display: inline-flex; align-items: center; gap: .45em; flex: 0 0 auto;
		background: var(--red); color: #fff; text-decoration: none;
		font-family: var(--f-head); font-weight: 700; font-size: 1.0625rem;
		padding: 13px 20px;
	}
	.call-bar__btn:hover, .call-bar__btn:focus { background: var(--red-dark); color: #fff; }

	/* Room so the bar never covers the last lines or the consent bubble. */
	body { padding-bottom: 76px; }
	.site-footer { padding-bottom: 24px; }
}
