/*
Theme Name: MOSS Advisory
Theme URI: https://mossadvisory.eu
Author: MOSS Advisory s.r.o.
Description: Šablona webu MOSS Advisory – pět oborů v šestiúhelníku. Barevné odlišení oborů, plástev na úvodní stránce, kontaktní formulář bez ukládání do databáze, katalog knih a písma hostovaná lokálně (bez Google Fonts).
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moss
*/

/* ---------- Základ ---------- */
:root {
	--ink: #2B2A29;
	--ink-2: #3D3C3A;
	--muted: #5C5A57;
	--line: #DDDBD7;
	--mist: #F3F2F0;
	--dark: #1E1D1C;
	--paper: #FFFFFF;
	--accent: #2B2A29;
	--accent-ink: #FFFFFF;
	--accent-soft: #F3F2F0;
	--accent-text: #2B2A29;
	--c-dpo: #1F4E79;
	--c-zakazky: #9E3F27;
	--c-it: #2C6B5F;
	--c-marketing: #E0A12A;
	--c-knihy: #5B2A52;
	--hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	--font-display: 'Archivo', 'Helvetica Neue', Helvetica, sans-serif;
	--font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
	--font-serif: 'Source Serif 4', Georgia, serif;
	--wrap: 1240px;
}
body.obor-dpo { --accent: var(--c-dpo); --accent-soft: #EEF3F8; --accent-text: var(--c-dpo); }
body.obor-zakazky { --accent: var(--c-zakazky); --accent-soft: #F7EEEB; --accent-text: var(--c-zakazky); }
body.obor-it { --accent: var(--c-it); --accent-soft: #EAF2F0; --accent-text: var(--c-it); }
body.obor-marketing { --accent: var(--c-marketing); --accent-ink: var(--ink); --accent-soft: #FBF3E3; --accent-text: #8A5A00; }
body.obor-knihy { --accent: var(--c-knihy); --accent-soft: #F3ECF1; --accent-text: var(--c-knihy); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-weight: 800; font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -0.015em; }
h2 { font-weight: 800; font-size: clamp(26px, 2.8vw, 36px); }
h3 { font-weight: 700; font-size: 19px; letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--paper); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hex { clip-path: var(--hex); }

/* ---------- Hlavička ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 10; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 44px; width: auto; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 21px; }
.nav-toggle { display: none; font: inherit; font-weight: 600; background: none; border: 1px solid var(--ink); border-radius: 2px; padding: 10px 14px; min-height: 44px; cursor: pointer; color: var(--ink); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; font-weight: 500; }
.main-nav a { text-decoration: none; color: var(--ink); display: inline-block; padding: 6px 0; border-bottom: 3px solid transparent; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { border-bottom-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.main-nav .menu-cta > a { padding: 10px 18px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 2px; }
.main-nav .menu-cta > a:hover { filter: brightness(0.92); }
.main-nav .lang-item a { color: var(--muted); }
@media (max-width: 960px) {
	.nav-toggle { display: inline-block; }
	.main-nav { display: none; width: 100%; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0 12px; }
	.main-nav a { padding: 10px 0; }
}

/* ---------- Tlačítka ---------- */
.btn, .wp-block-button__link {
	display: inline-block; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
	padding: 14px 24px; border-radius: 2px; border: 1px solid transparent; line-height: 1.3;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-light { background: #fff; color: var(--accent-text); }
.btn-light:hover { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button__link { background: var(--ink); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: inherit; border-color: currentColor; }

/* ---------- Úvodní stránka ---------- */
.home-hero { background: var(--mist); }
.home-hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 80px; }
.home-hero__text { flex: 1 1 460px; min-width: 0; }
.home-hero__text h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.02em; white-space: pre-line; }
.eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; margin-bottom: 32px; }
.honeycomb-wrap { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.honeycomb { position: relative; width: 100%; max-width: 500px; aspect-ratio: 500 / 480; }
.honeycomb > * {
	position: absolute; width: 32%; height: 38.54%; clip-path: var(--hex);
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	padding: 0 10%; text-decoration: none; color: #fff;
	font-family: var(--font-display); font-weight: 700; font-size: clamp(11px, 1.3vw, 16px); line-height: 1.2;
	transition: transform .15s ease;
}
.honeycomb > a:hover { transform: scale(1.04); color: #fff; }
.honeycomb small { font-size: .8em; opacity: .8; }
.honeycomb .c1 { left: 17%; top: 0; background: var(--c-dpo); }
.honeycomb .c2 { left: 51%; top: 0; background: var(--c-zakazky); }
.honeycomb .c3 { left: 0; top: 30.63%; background: var(--c-it); }
.honeycomb .c0 { left: 34%; top: 30.63%; background: #fff; }
.honeycomb .c0 img { width: 62%; }
.honeycomb .c4 { left: 68%; top: 30.63%; background: var(--c-marketing); color: var(--ink); }
.honeycomb .c4:hover { color: var(--ink); }
.honeycomb .c5 { left: 17%; top: 61.46%; background: var(--c-knihy); }
.honeycomb .c6 { left: 51%; top: 61.46%; background: var(--ink); }

.section { padding-top: 80px; padding-bottom: 80px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); }
.section-head p { margin: 0; max-width: 30em; color: var(--muted); }
.obor-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.obor-card { border: 1px solid var(--line); padding: 28px 24px 26px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.obor-card__hex { width: 46px; height: 53px; clip-path: var(--hex); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #fff; }
.obor-card h3 { margin: 0; font-size: 21px; }
.obor-card p { margin: 0; font-size: 15px; color: var(--muted); }
.obor-card a.more { margin-top: auto; padding-top: 8px; font-weight: 600; }

/* ---------- Záhlaví oboru ---------- */
.obor-hero { background: var(--accent); color: var(--accent-ink); }
.obor-hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 28px; padding-bottom: 80px; }
.obor-hero a { color: var(--accent-ink); }
.breadcrumb { flex: 1 1 100%; font-size: 14px; opacity: .85; }
.obor-hero__text { flex: 2 1 520px; min-width: 0; }
.obor-hero .eyebrow { color: inherit; opacity: .85; }
.obor-hero .lead { color: inherit; opacity: .95; }
.obor-hero .btn-light { color: var(--accent-text); }
.obor-hero.obor-hero--marketing .btn-light { background: var(--ink); color: #fff; }
.obor-hero__icon { flex: 1 1 260px; display: flex; justify-content: center; }
.hex-frame { width: 240px; height: 277px; clip-path: var(--hex); background: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.hex-frame > div { width: 216px; height: 249px; clip-path: var(--hex); background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--accent-ink); }
.hex-frame svg { width: 92px; height: 92px; }
.page-hero { background: var(--mist); }
.page-hero .wrap { padding-top: 28px; padding-bottom: 56px; }
.page-hero .breadcrumb { margin-bottom: 28px; color: var(--muted); opacity: 1; }
.page-hero .breadcrumb a { color: var(--muted); }

/* ---------- Obsah stránek (bloky) ---------- */
.entry-content { padding-bottom: 24px; }
.entry-content > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.entry-content > p, .entry-content > ul, .entry-content > ol, .entry-content > h2, .entry-content > h3, .entry-content > .wp-block-details, .entry-content > .wp-block-table { max-width: 868px; }
.entry-content > h2 { margin-top: 64px; }
.entry-content > .wp-block-group { padding-top: 0; padding-bottom: 0; }
.entry-content .wp-block-group { margin-top: 0; }

/* rozdělená sekce: text + informační box */
.moss-split { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 72px !important; padding-bottom: 24px !important; }
.moss-split > :first-child { flex: 1 1 340px; min-width: 0; }
.moss-split > :first-child p { color: var(--muted); }
.moss-split > :last-child { flex: 1 1 520px; min-width: 0; }
.moss-infobox { background: var(--accent-soft); padding: 28px 30px; }
ul.moss-hexlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
ul.moss-hexlist li { position: relative; padding-left: 30px; }
ul.moss-hexlist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 18px; clip-path: var(--hex); background: var(--accent); }

/* mřížka služeb */
.moss-services { padding-top: 64px !important; padding-bottom: 64px !important; }
.moss-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); counter-reset: svc; margin-top: 32px; }
.moss-grid > .wp-block-group { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); counter-increment: svc; }
.moss-grid > .wp-block-group::before { content: counter(svc, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--accent-text); margin-bottom: 8px; }
.moss-grid h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; margin: 0 0 8px; }
.moss-grid p { margin: 0; font-size: 15px; color: var(--muted); }

/* postup */
.moss-band { background: var(--mist); max-width: none !important; padding-top: 72px !important; padding-bottom: 72px !important; }
.moss-band > * { max-width: calc(var(--wrap) - 48px); margin-left: auto; margin-right: auto; }
ol.moss-steps { list-style: none; margin: 32px auto 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: step; }
ol.moss-steps li { counter-increment: step; font-size: 15px; color: var(--muted); }
ol.moss-steps li::before { content: counter(step); width: 42px; height: 48px; clip-path: var(--hex); background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 17px; margin-bottom: 12px; }
ol.moss-steps li strong { display: block; font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }

/* karty (formy spolupráce, případové studie, zásady) */
.moss-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.moss-cards > .wp-block-group { background: #fff; border: 1px solid var(--line); padding: 28px 26px; }
.moss-cards h3 { font-size: 21px; }
.moss-cards p { font-size: 15px; color: var(--muted); }
.moss-cards p:last-child { margin-bottom: 0; }

/* časté dotazy */
.moss-faq { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 72px !important; padding-bottom: 72px !important; }
.moss-faq > h2 { flex: 1 1 300px; margin: 0; }
.moss-faq > .wp-block-group { flex: 2 1 560px; min-width: 0; }
.wp-block-details { border-top: 1px solid var(--line); padding: 18px 0; }
.wp-block-details:last-child { border-bottom: 1px solid var(--line); }
.wp-block-details summary { font-weight: 600; cursor: pointer; }
.wp-block-details p { margin: 10px 0 0; color: var(--muted); }

/* výzva k akci */
.moss-cta { background: var(--accent); color: var(--accent-ink); max-width: none !important; padding-top: 64px !important; padding-bottom: 64px !important; }
.moss-cta > * { max-width: calc(var(--wrap) - 48px); margin-left: auto; margin-right: auto; }
.moss-cta h2 { margin-bottom: 10px; }
.moss-cta p { opacity: .92; }
.moss-cta a:not(.wp-block-button__link) { color: inherit; font-weight: 600; }
.moss-cta .wp-block-button__link { background: var(--accent-ink); color: var(--accent); }
body.obor-marketing .moss-cta .wp-block-button__link { background: var(--ink); color: #fff; }
.moss-cta .wp-block-buttons { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

/* synergie na úvodu */
.moss-synergy { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; margin-top: 28px; }
.moss-synergy h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.moss-synergy p { font-size: 15px; color: var(--muted); margin: 0; }

/* tabulka (zásady) */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.wp-block-table th, .wp-block-table td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.wp-block-table thead th { background: var(--mist); }
.moss-note { background: var(--accent-soft); padding: 20px 24px !important; }
body:not([class*="obor-"]) .moss-note { background: #EEF3F8; }

/* ---------- Knihy ---------- */
.moss-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 36px 28px; margin: 32px auto; }
.book { display: flex; flex-direction: column; gap: 10px; }
.book__cover { aspect-ratio: 2 / 3; background: var(--c-knihy); color: #fff; padding: 24px 20px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.book__cover img { width: 100%; height: 100%; object-fit: cover; margin: -24px -20px; width: calc(100% + 40px); height: calc(100% + 48px); max-width: none; }
.book__cover .t { font-family: var(--font-serif); font-weight: 700; font-size: 24px; line-height: 1.15; }
.book__cover .a { font-size: 12px; letter-spacing: .12em; font-weight: 600; text-transform: uppercase; }
.book h3 { font-family: var(--font-serif); font-size: 21px; margin: 0; }
.book .meta { font-size: 14px; color: var(--muted); margin: 0; }
.book .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.book .badge { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--c-knihy); }
body.obor-knihy h1, body.obor-knihy .book h3 { font-family: var(--font-serif); }

/* ---------- Kontaktní formulář ---------- */
.moss-contact { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.moss-contact__info { flex: 1 1 320px; min-width: 0; }
.moss-contact__info ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; }
.moss-contact__info li { position: relative; padding-left: 28px; }
.moss-contact__info li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 18px; clip-path: var(--hex); background: var(--ink); }
.moss-contact__info li.dpo::before { background: var(--c-dpo); }
.moss-contact__company { border-top: 1px solid #C9C6C1; padding-top: 20px; font-size: 15px; color: var(--ink-2); }
.moss-form { flex: 1.4 1 520px; min-width: 0; background: #fff; border: 1px solid var(--line); padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.moss-form h2 { margin: 0; font-size: 26px; }
.moss-form .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.moss-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.moss-form input, .moss-form select, .moss-form textarea { font: inherit; font-size: 16px; padding: 12px; border: 1px solid #8A8784; border-radius: 2px; background: #fff; color: var(--ink); }
.moss-form textarea { resize: vertical; min-height: 150px; }
.moss-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.moss-form .info { margin: 0; font-size: 14px; color: var(--ink-2); background: var(--mist); padding: 14px 16px; }
.moss-form .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.moss-form .actions span { font-size: 14px; color: var(--muted); }
.moss-alert { padding: 16px 18px; font-weight: 500; }
.moss-alert.ok { background: #EAF2F0; border-left: 0; color: #1C4A41; }
.moss-alert.err { background: #F7EEEB; color: #7A2A16; }
.page-template-default.page-kontakt .entry-content, .moss-contact-wrap { background: var(--mist); }

/* ---------- Patička ---------- */
.home-cta { background: var(--ink); color: #fff; }
.home-cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-top: 64px; padding-bottom: 64px; }
.home-cta h2 { margin: 0 0 10px; }
.home-cta p { margin: 0; opacity: .9; }
.site-footer { background: var(--dark); color: #CFCDC9; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.site-footer p { margin: 0; max-width: 46em; }
.site-footer a { color: #CFCDC9; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Výpisy, 404 ---------- */
.plain { padding-top: 64px; padding-bottom: 80px; }
.plain article + article { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }

@media (max-width: 600px) {
	body { font-size: 16px; }
	.moss-form { padding: 24px 18px; }
	.home-hero .wrap { padding-top: 48px; padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) { .honeycomb > * { transition: none; } }

/* Kontaktní stránka */
.entry-content > .moss-contact { padding-top: 56px; padding-bottom: 88px; }
.entry-content.moss-contact-wrap { padding-bottom: 0; }
.book-text > * { max-width: 46em; }
@media (max-width: 700px) { .obor-hero__icon { display: none; } .obor-hero .wrap { padding-bottom: 56px; } }
