/*
Theme Name: Mapa 3D
Theme URI: https://github.com/
Description: Šablona webu „vaše místa.“ s appkou na 3D mapy – úvod „vaše místa.“, kapitoly vaše města / vaše trasy / vaše hory / váš domov (každá jeden výrobek), tři kroky a výzva; stránky (podmínky, kontakt), menu a patička s povinnými odkazy. Teplá bílá, grafit a korálová, písmo Manrope.
Version: 0.5.0.20261107173525
Requires at least: 6.3
Requires PHP: 7.4
Author: vaše místa
License: GPL-2.0-or-later
Text Domain: mapa3d
*/

/* písmo Manrope (SIL Open Font License, assets/fonts/OFL.txt) – latinka a čeština */
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
	src: url(assets/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
	src: url(assets/fonts/manrope-latin-wght-normal.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--paper: #f5f4f0;    /* teplá bílá */
	--white: #fff;
	--ink: #17191b;      /* grafit */
	--muted: #6e7478;
	--line: rgba(23, 25, 27, .1);
	--coral: #f26945;    /* korálová */
	--coral-ink: #cf4b27; /* korálová pro malý text */
	--wrap: 1200px;
	--ease: cubic-bezier(.2, .7, .15, 1);
	--head-h: 60px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
a { color: inherit; text-decoration-color: var(--coral); text-underline-offset: 3px; }
a:hover { color: var(--coral-ink); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.04em; font-weight: 800; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
svg { flex: none; }
::selection { background: var(--coral); color: #fff; }

/* tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700;
	font-size: 15px; padding: 12px 22px; border-radius: 999px; line-height: 1.2; transition: background .25s, transform .25s var(--ease); }
.btn:hover { background: #000; color: #fff; }
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { background: var(--coral); font-size: 17px; padding: 17px 30px; }
.btn-lg:hover { background: #e4552f; }
.btn.small { font-size: 14px; padding: 9px 16px; }
.btn.off { background: rgba(23, 25, 27, .12); color: var(--muted); pointer-events: none; }
.link { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(23, 25, 27, .25); text-underline-offset: 5px; }
.link:hover { color: var(--ink); text-decoration-color: var(--coral); }

/* logo „vaše místa.“ */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.04em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand svg { width: 26px; height: 26px; }
.brand b { font-weight: inherit; }
.brand i { font-style: normal; color: var(--coral); }
.brand img { max-height: 40px; width: auto; }

/* hlavička */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(245, 244, 240, .8); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); }
.head-in { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.site-head .brand { margin-right: auto; }
.main-nav { display: flex; align-items: center; }
.menu { list-style: none; display: flex; gap: 4px 30px; margin: 0; padding: 0; }
.menu a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; transition: color .2s; }
.menu a:hover, .menu .current-menu-item > a { color: var(--ink); }
.nav-cta { display: none; }
.head-actions { display: flex; align-items: center; gap: 12px; margin-left: 12px; }
.icon-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ink); }
.icon-link:hover { background: rgba(23, 25, 27, .06); color: var(--ink); }
.icon-link svg { width: 20px; height: 20px; }
.nav-toggle { display: none; position: relative; width: 40px; height: 40px; margin-right: -8px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:first-child { top: 16px; } .nav-toggle span:last-child { top: 23px; }
.nav-open .nav-toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }
.admin-bar .site-head { top: 32px; }

/* stránky (podmínky, kontakt…) */
main { display: block; }
body:not(.landing) main > .wrap { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); }
.card { background: var(--white); border-radius: 28px; padding: clamp(28px, 5vw, 64px); max-width: 880px; margin: 0 auto; }
.entry h1 { font-size: clamp(34px, 5vw, 56px); margin: 0 0 24px; }
.entry h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.03em; margin: 40px 0 12px; }
.entry :where(p, ul, ol) { max-width: 68ch; }
.posts { display: grid; gap: 18px; padding-top: 48px; padding-bottom: 72px; }
.posts article h2 { margin: 0 0 6px; font-size: 24px; } .posts article h2 a { color: var(--ink); text-decoration: none; }
.meta { color: var(--muted); font-size: 14px; }

/* objevení při posunu (jen se skriptem – bez něj je vše vidět) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- úvod: „vaše místa.“ ---------- */
.hero { overflow: hidden; text-align: center; padding: clamp(56px, 10vw, 128px) 0 clamp(40px, 6vw, 80px); }
.hero-title { font-size: clamp(64px, 13vw, 184px); line-height: .9; letter-spacing: -.065em; margin: 0; white-space: nowrap; }
.swap { display: inline-block; text-align: left; }
.swap i, .chapter h2 i, .final span { font-style: normal; color: var(--coral); }
.swap-w { display: inline-block; transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s; }
.swap-w.out { opacity: 0; transform: translateY(.18em); filter: blur(6px); }
.hero-lead { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; color: var(--muted); max-width: 26em; margin: clamp(20px, 3vw, 32px) auto 36px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; }
.hero-pic { margin: clamp(48px, 7vw, 96px) auto 0; max-width: 1040px; }
.hero-pic img { width: 100%; filter: drop-shadow(0 40px 50px rgba(23, 25, 27, .15)); }
.lineup { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 28px); margin: clamp(56px, 8vw, 104px) auto 0; max-width: 1120px; align-items: end; }
.lineup a { display: grid; gap: 18px; justify-items: center; text-decoration: none; color: var(--ink); }
.lineup img { width: 100%; aspect-ratio: 1.1; object-fit: contain; filter: drop-shadow(0 22px 26px rgba(23, 25, 27, .14)); transition: transform .8s var(--ease); }
.lineup a:hover img { transform: translateY(-8px); }
.lineup span { font-weight: 800; font-size: clamp(15px, 1.5vw, 19px); letter-spacing: -.03em; }
.lineup i { font-style: normal; color: var(--coral); }
.js .lineup a { animation: up 1s var(--ease) both; }
.js .lineup a:nth-child(2) { animation-delay: .08s; } .js .lineup a:nth-child(3) { animation-delay: .16s; } .js .lineup a:nth-child(4) { animation-delay: .24s; }
@keyframes up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ---------- kapitoly: vaše města. / vaše trasy. / vaše hory. / váš domov. ---------- */
.chapter { padding: clamp(88px, 12vw, 160px) 0; text-align: center; }
.chapter.alt { background: var(--white); }
.chapter h2 { font-size: clamp(56px, 10vw, 140px); line-height: .92; letter-spacing: -.06em; }
.story { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; color: var(--muted); max-width: 27em; margin: clamp(18px, 2.4vw, 28px) auto 0; }
.chapter-pic { display: block; max-width: 920px; margin: clamp(40px, 6vw, 72px) auto 0; }
.chapter-pic img { width: 100%; filter: drop-shadow(0 32px 40px rgba(23, 25, 27, .14)); transition: transform 1.2s var(--ease); }
.chapter-pic:hover img { transform: scale(1.02); }
.buy { display: inline-flex; align-items: center; gap: 28px; margin-top: clamp(32px, 4vw, 48px); text-align: left; }
.buy-txt { display: grid; line-height: 1.35; }
.buy-txt b { font-size: 17px; letter-spacing: -.02em; }
.buy-txt span { font-size: 15px; color: var(--muted); }

/* ---------- jak to funguje ---------- */
.how { padding: clamp(96px, 13vw, 176px) 0; }
.how h2 { font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.055em; }
.how h2 span { color: var(--muted); }
.steps { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: krok; }
.steps li { counter-increment: krok; border-top: 1px solid var(--ink); padding-top: 22px; display: grid; gap: 6px; }
.steps li::before { content: "0" counter(krok); font-size: 14px; font-weight: 700; color: var(--coral-ink); margin-bottom: 14px; }
.steps b { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.035em; line-height: 1.15; }
.steps span { color: var(--muted); font-size: 16px; }

/* ---------- výzva ---------- */
.final { background: var(--ink); color: #fff; text-align: center; padding: clamp(104px, 15vw, 200px) 0; }
.final h2 { font-size: clamp(48px, 8.4vw, 120px); line-height: .95; letter-spacing: -.06em; margin: 0 0 clamp(36px, 5vw, 56px); }

/* patička */
.site-foot { background: var(--paper); color: var(--muted); font-size: 14px; padding: 64px 0 32px; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--coral-ink); }
.site-foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin: 14px 0 0; line-height: 1.55; }
.site-foot h2 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 16px; }
.site-foot ul, .site-foot .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-foot .menu { margin-top: 10px; }
.site-foot .menu a { font-size: 14px; font-weight: 500; color: var(--ink); }
.site-foot .small { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.site-foot .small a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(23, 25, 27, .2); }

/* ---------- menší obrazovky ---------- */
@media (max-width: 1080px) {
	.site-foot .cols { grid-template-columns: 1fr 1fr; }
	.foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	:root { --head-h: 56px; }
	.head-cta { display: none; }
	.nav-toggle { display: block; }
	.head-actions { gap: 4px; margin-left: 0; }
	.main-nav { position: fixed; inset: var(--head-h) 0 auto; height: calc(100dvh - var(--head-h)); background: var(--paper); flex-direction: column; align-items: stretch;
		justify-content: space-between; padding: 24px 24px max(32px, env(safe-area-inset-bottom)); visibility: hidden; opacity: 0;
		transition: opacity .3s var(--ease), visibility 0s .3s; overflow-y: auto; }
	.nav-open .main-nav { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
	.nav-open { overflow: hidden; }
	.main-nav .menu { flex-direction: column; gap: 0; }
	.main-nav .menu a { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); padding: 10px 0; }
	.nav-cta { display: flex; margin-top: 32px; padding: 17px 24px; font-size: 17px; background: var(--coral); }
	.steps { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding: 0 20px; }
	.brand { font-size: 19px; } .brand svg { width: 24px; height: 24px; }
	.hero-title { font-size: 17vw; }
	.lineup { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
	.cta { flex-direction: column; gap: 20px; }
	.cta .btn, .final .btn { width: 100%; }
	.buy { display: flex; flex-direction: column; gap: 18px; text-align: center; }
	.buy .btn { width: 100%; padding: 15px 22px; font-size: 16px; }
	.chapter h2 { font-size: 15vw; }
	.site-foot .cols { gap: 32px 20px; }
	.admin-bar .site-head { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1 !important; transform: none !important; }
}
