/*
Theme Name: Konferencia BDDP
Theme URI: https://www.konferenciabddp.sk
Author: Digimania s.r.o.
Description: Téma pre konferenciu Bezpečnosť detí v digitálnom priestore. Štyri varianty vizuálnej identity (CI) sa prepínajú v Prispôsobiť > Konferencia BDDP.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bddp
*/

/* ---------- CI varianty ---------- */
:root, body.ci-a {
	--dark: #0B1020; --dark-2: #141B33; --dark-line: #232B45; --on-dark-muted: #AAB3CC;
	--brand: #2A49E8; --accent: #FFB547; --on-accent: #0B1020;
	--paper: #F5F6F8; --text: #0B1020; --muted: #4A5368; --line: #E1E4EC; --link: #1B3BD6;
	--font-display: 'Bricolage Grotesque', system-ui, sans-serif;
	--font-body: 'Instrument Sans', system-ui, sans-serif;
	--display-weight: 700;
}
body.ci-b {
	--dark: #0E3B2E; --dark-2: #14483A; --dark-line: #1F5A49; --on-dark-muted: #B7CFC4;
	--brand: #1F6B4F; --accent: #B9F26B; --on-accent: #0E3B2E;
	--paper: #F2F7F0; --text: #12241D; --muted: #46594F; --line: #DCE6DA; --link: #1F6B4F;
	--font-display: 'Sora', system-ui, sans-serif;
	--font-body: 'DM Sans', system-ui, sans-serif;
}
body.ci-c {
	--dark: #14121F; --dark-2: #1E1B2E; --dark-line: #2C2842; --on-dark-muted: #B5B0CC;
	--brand: #5B3DF5; --accent: #19D3A2; --on-accent: #14121F;
	--paper: #F4F2FF; --text: #14121F; --muted: #4D4A63; --line: #DEDAF5; --link: #4A2FE0;
	--font-display: 'Space Grotesk', system-ui, sans-serif;
	--font-body: 'IBM Plex Sans', system-ui, sans-serif;
}
body.ci-d {
	--dark: #2B1238; --dark-2: #3A1B4A; --dark-line: #4A2A5C; --on-dark-muted: #D9C9E2;
	--brand: #C23A1E; --accent: #FF5A3C; --on-accent: #2B1238;
	--paper: #FFF1EC; --text: #2B1238; --muted: #5C4868; --line: #F0DAD2; --link: #B5321A;
	--font-display: 'Manrope', system-ui, sans-serif;
	--font-body: 'Manrope', system-ui, sans-serif;
	--display-weight: 800;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.55; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; color: #000; padding: 10px 16px; z-index: 100; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Hlavička ---------- */
.site-header { background: var(--dark); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-height: 44px; }
.brand svg, .brand img { width: 40px; height: 40px; flex: 0 0 40px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 26px; font-size: 16px; }
.nav a { color: #D5DAE8; text-decoration: none; padding: 10px 0; }
.nav a:hover { color: #fff; }
.nav a.btn { padding: 0 20px; }
.nav a.btn:hover { color: var(--on-accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 17px; }
.btn--accent, .nav a.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--outline { border-color: var(--text); color: var(--text); }
.btn--white { background: #fff; color: var(--text); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn:hover { filter: brightness(1.06); }

/* ---------- Hero ---------- */
.hero { background: var(--dark); color: #fff; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 56px; padding-bottom: 88px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-art { flex: 1 1 280px; max-width: 400px; }
.hero-art svg { width: 100%; height: auto; display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #D5DAE8; font-size: 14px; font-weight: 500; }
.hero h1 { font-weight: var(--display-weight, 700); font-size: clamp(40px, 6.2vw, 86px); line-height: 1.03; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #C3CADC; max-width: 600px; margin: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.facts { border-top: 1px solid var(--dark-line); }
.facts .wrap { display: flex; flex-wrap: wrap; gap: 24px 56px; padding-top: 28px; padding-bottom: 28px; }
.fact { flex: 1 1 220px; }
.label { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--on-dark-muted); }
.fact strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-top: 4px; }
.fact span { color: #C3CADC; }

/* ---------- Sekcie ---------- */
.section { padding: 96px 0; }
.section--white { background: #fff; }
.section--dark { background: var(--dark); color: #fff; }
.eyebrow { font-size: 14px; color: var(--link); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.section--dark .eyebrow { color: var(--accent); }
.h2 { font-weight: 600; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.01em; margin: 12px 0 40px; }
.h3 { font-weight: 600; font-size: 26px; line-height: 1.2; margin: 56px 0 6px; }
.sub { color: var(--muted); margin: 0 0 24px; }
.section--dark .sub { color: var(--on-dark-muted); }
.split { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.split > :first-child { flex: 1 1 320px; min-width: 0; }
.split > :last-child { flex: 2 1 480px; min-width: 0; }
.split .h2 { margin-bottom: 0; }
.muted { color: var(--muted); }
.cards { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.card { flex: 1 1 320px; min-width: 0; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.section--white .card { background: var(--paper); border-color: transparent; }
.section--dark .card { background: var(--dark-2); border-color: var(--dark-line); }
.card--dark { background: var(--dark) !important; color: #fff; border-color: transparent !important; }
.card h3 { font-weight: 600; font-size: 21px; line-height: 1.2; }
.card-note { color: var(--muted); font-size: 15px; margin: 4px 0 12px; }
.row { padding: 12px 0; border-top: 1px solid var(--line); }
.section--dark .row, .card--dark .row { border-color: var(--dark-line); }
.time { font-size: 14px; font-weight: 600; color: var(--link); font-variant-numeric: tabular-nums; }
.section--dark .time, .card--dark .time { color: var(--accent); }
.row-title { font-weight: 600; line-height: 1.35; }
.who { color: var(--muted); font-size: 15px; }
.section--dark .who, .card--dark .who { color: var(--on-dark-muted); }
.stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.stat { flex: 1 1 150px; padding: 24px; border-radius: 16px; background: var(--paper); }
.stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--link); }
.stat span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
.speaker { display: flex; flex-direction: column; gap: 20px; padding: 36px; }
.speaker-head { display: flex; align-items: center; gap: 18px; }
.avatar { flex: 0 0 72px; height: 72px; border-radius: 50%; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.speaker-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; }
.speaker-talk { padding-top: 20px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 600; line-height: 1.35; }
.speaker-talk small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.head-row .h2 { margin-bottom: 0; }
.ws { display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.ws-org { font-size: 14px; font-weight: 600; color: var(--accent); }
.ws h3 { font-size: 26px; }
.ws p { margin: 0; color: #C3CADC; font-size: 16px; }
.ws-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--dark-line); font-size: 15px; }
.logos { margin-top: 24px; padding: 28px 36px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.logos-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 40px; margin-top: 16px; }
.logos-row img.wide { flex: 1 1 420px; min-width: 0; max-width: 640px; }
.logos-row img.single { height: 64px; width: auto; }
.year-card { display: flex; flex-direction: column; gap: 10px; flex-basis: 250px; }
.year-card b { font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 1; }
.year-card .links { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.cta { flex: 1 1 420px; min-width: 0; padding: 44px; border-radius: 24px; background: var(--brand); color: #fff; display: flex; flex-direction: column; gap: 18px; }
.cta .label { color: rgba(255,255,255,.85); }
.cta h2 { font-weight: 600; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; }
.cta p { margin: 0; color: rgba(255,255,255,.95); }
.timeline { flex: 1 1 420px; min-width: 0; padding: 44px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.tl-row { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.tl-row b { flex: 0 0 150px; color: var(--link); font-variant-numeric: tabular-nums; }

/* ---------- Archív ---------- */
.page-head { background: var(--dark); color: #fff; padding: 40px 0 64px; }
.page-head .eyebrow { color: var(--accent); }
.page-head h1 { font-weight: var(--display-weight, 700); font-size: clamp(36px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.02em; margin-top: 12px; }
.page-head .lead { margin-top: 16px; }
.year-nav { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.year { padding: 80px 0; border-bottom: 1px solid var(--line); }
.year-head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-start; margin-bottom: 40px; }
.year-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(64px, 9vw, 120px); line-height: .9; letter-spacing: -0.03em; color: var(--brand); }
.year-info { flex: 1 1 420px; min-width: 0; }
.year-info h2 { font-weight: 600; font-size: 30px; }
.year-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; font-size: 16px; }
.year .cards { align-items: flex-start; gap: 20px; }
.year .card { flex-basis: 360px; }

/* ---------- Obsah stránok a formulár ---------- */
.content { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.content h2 { font-size: 28px; margin: 1.6em 0 .5em; }
.bddp-form { display: flex; flex-direction: column; gap: 20px; padding: 36px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.bddp-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.bddp-form legend { font-family: var(--font-display); font-weight: 600; font-size: 22px; padding: 0; margin-bottom: 12px; }
.bddp-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.bddp-field { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bddp-field label, .bddp-label { font-weight: 600; font-size: 15px; }
.bddp-field input, .bddp-field select, .bddp-field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid #8A93A8; background: #fff; font: inherit; color: inherit; }
.bddp-field textarea { min-height: 120px; resize: vertical; }
.bddp-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 6px 0; }
.bddp-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 22px; accent-color: var(--brand); }
.bddp-hp { position: absolute; left: -9999px; }
.bddp-msg { padding: 18px 22px; border-radius: 16px; font-weight: 500; }
.bddp-msg--ok { background: #E3F6EA; color: #0F4A26; border: 1px solid #A9DDBB; }
.bddp-msg--err { background: #FDECEC; color: #7A1414; border: 1px solid #F0B4B4; }
.bddp-msg ul { margin: 8px 0 0; padding-left: 20px; }
.req { color: #B3261E; }

/* ---------- Pätička ---------- */
.site-footer { background: var(--dark); color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px 72px; padding-top: 64px; padding-bottom: 40px; }
.footer-grid > div { flex: 1 1 220px; min-width: 0; }
.footer-grid > div:first-child { flex: 2 1 320px; }
.footer-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; }
.site-footer p { color: var(--on-dark-muted); font-size: 16px; max-width: 440px; margin: 12px 0 0; }
.site-footer a { color: #fff; overflow-wrap: anywhere; }
.footer-links { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #D5DAE8; text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--dark-line); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; color: var(--on-dark-muted); font-size: 14px; }

@media (max-width: 640px) {
	.section { padding: 64px 0; }
	.cta, .timeline, .speaker, .bddp-form { padding: 28px 22px; }
	.tl-row { flex-direction: column; gap: 2px; }
	.tl-row b { flex-basis: auto; }
	.nav { gap: 0 18px; }
	.hero-art { max-width: 200px; flex-basis: 200px; }
	.hero-grid { gap: 36px; padding-bottom: 56px; }
}
