/*
Theme Name: WC Brno
Theme URI: https://wcbrno.cz
Author: WC Brno
Description: Šablona pro Watch Club Brno – úvodní stránka s přihláškou do klubu a blog.
Version: 1.2.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: wc-brno
*/

:root {
	--ivory: #F3F0E8;
	--sand: #E8E2D3;
	--paper: #FBFAF6;
	--line: #D9D3C4;
	--ink: #111111;
	--text: #3A3832;
	--muted: #5A564C;
	--brass: #7A5C22;
	--brass-light: #C9A24A;
	--dark-text: #DAD5C8;
	--dark-muted: #B8B2A3;
	--display: "Michroma", "Eurostile", sans-serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.eyebrow { margin: 0 0 16px; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.dark .eyebrow { color: var(--brass-light); }
.display { font-family: var(--display); font-weight: 400; line-height: 1.25; }
.h2 { margin: 0 0 24px; font-size: clamp(26px, 3vw, 34px); }

/* Tlačítka */
.btn { display: inline-block; padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: #2a2925; color: var(--ivory); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn-brass { background: var(--brass-light); border-color: var(--brass-light); color: var(--ink); font-weight: 700; }
.btn-brass:hover { background: #d8b45c; color: var(--ink); }

/* Hlavička */
.site-header { border-bottom: 1px solid var(--line); background: var(--ivory); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo img { height: 44px; width: auto; display: block; mix-blend-mode: multiply; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.main-nav a { display: block; padding: 12px 16px; text-decoration: none; font-weight: 500; }
.main-nav .current-menu-item > a, .main-nav .current_page_parent > a, .main-nav a[aria-current] { font-weight: 600; box-shadow: inset 0 -2px 0 var(--brass); }
.main-nav .nav-cta a { background: var(--ink); color: var(--ivory); border-radius: 999px; padding: 12px 20px; font-weight: 600; box-shadow: none; }
.main-nav .nav-cta a:hover { background: #2a2925; color: var(--ivory); }

/* Hero */
.hero { padding: 96px 0 80px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.hero-text { flex: 999 1 520px; min-width: 0; }
.hero h1 { margin: 0 0 28px; font-size: clamp(34px, 5vw, 60px); line-height: 1.15; }
.hero .lead { margin: 0 0 36px; font-size: 20px; max-width: 560px; color: var(--text); }
.hero-logo { flex: 1 1 320px; display: flex; justify-content: center; }
.hero-logo img { width: 100%; max-width: 400px; mix-blend-mode: multiply; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Aktuality */
.news { padding: 0 0 80px; }
.news-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.news-head .eyebrow { margin: 0; }
.news-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 5px rgba(122,92,34,.18); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.news-item { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.news-item.is-first { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.news-when { align-self: flex-start; font-family: var(--display); font-size: 13px; letter-spacing: .06em; padding: 8px 14px; border-radius: 999px; background: var(--sand); color: var(--brass); }
.news-item.is-first .news-when { background: var(--brass-light); color: var(--ink); }
.news-item h3 { margin: 0; font-size: 22px; line-height: 1.35; }
.news-item .news-text { color: var(--text); font-size: 16px; line-height: 1.6; }
.news-item .news-text p { margin: 0 0 8px; }
.news-item.is-first .news-text { color: var(--dark-text); }
.news-where { font-size: 15px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.news-item.is-first .news-where { color: var(--dark-muted); }
.news-link { margin-top: auto; padding-top: 6px; font-weight: 600; }
.news-item.is-first .news-link { color: var(--brass-light); }

/* Tmavá sekce O klubu */
.dark { background: var(--ink); color: var(--ivory); }
.about .wrap { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 88px; padding-bottom: 56px; }
.about-head { flex: 1 1 340px; }
.about-head h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.3; }
.about-text { flex: 999 1 480px; min-width: 0; font-size: 18px; line-height: 1.7; color: var(--dark-text); }
.about-text p:first-child { margin-top: 0; }
.about .wrap.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 0; padding-bottom: 88px; }
.card-dark { border: 1px solid #3A3832; border-radius: 16px; padding: 28px; }
.card-dark h3 { margin: 16px 0 8px; font-size: 20px; }
.card-dark p { margin: 0; color: var(--dark-muted); }

/* Klubový řád */
.rules { padding: 88px 0; }
.rules ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.rules li { padding: 22px 0; border-top: 1px solid var(--line); display: flex; gap: 18px; font-size: 18px; line-height: 1.5; }
.rules li span { font-family: var(--display); color: var(--brass); }

/* Přihláška */
.signup { background: var(--sand); scroll-margin-top: 20px; }
.signup .wrap { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 88px; padding-bottom: 88px; }
.signup-intro { flex: 1 1 320px; }
.signup-intro p { color: var(--text); font-size: 18px; }
.signup-intro .small { font-size: 15px; color: var(--muted); }
.signup-box { flex: 999 1 480px; min-width: 0; background: var(--paper); border-radius: 20px; padding: 36px; }
.wcb-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.wcb-form label.field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.wcb-form .opt { font-weight: 400; color: var(--muted); }
.wcb-form input[type=text], .wcb-form input[type=email], .wcb-form input[type=tel], .wcb-form select {
	font: inherit; font-weight: 400; padding: 14px 16px; border: 1.5px solid #CFC8B7; border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.wcb-form .full { grid-column: 1 / -1; }
.wcb-form .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text); font-weight: 400; }
.wcb-form .consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex-shrink: 0; }
.wcb-form button { width: 100%; font-weight: 700; }
.wcb-form [hidden] { display: none !important; }
.wcb-hp { position: absolute; left: -9999px; }
.notice { border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; font-size: 16px; }
.notice-error { background: #F6E1DC; color: #7A1E0E; }
.thanks { text-align: center; padding: 40px 0; }
.thanks h3 { margin: 16px 0 10px; font-size: 26px; }
.thanks p { margin: 0; font-size: 18px; color: var(--text); }

/* Blog */
.blog-head { padding: 72px 0 32px; }
.blog-head h1 { margin: 0 0 16px; font-size: clamp(32px, 4.5vw, 54px); }
.blog-head .lead { margin: 0 0 36px; font-size: 19px; color: var(--text); max-width: 620px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pills a { display: block; padding: 12px 20px; border-radius: 999px; border: 1.5px solid #BDB5A2; text-decoration: none; font-weight: 600; font-size: 15px; }
.pills a.is-active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.ph { background: repeating-linear-gradient(135deg, #DDD6C5 0 12px, #E6E0D1 12px 24px); }

.featured { display: flex; flex-wrap: wrap; text-decoration: none; background: var(--ink); color: var(--ivory); border-radius: 20px; overflow: hidden; margin: 24px 0 40px; }
.featured:hover { color: var(--ivory); }
.featured-img { flex: 1 1 420px; min-height: 340px; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-body { flex: 1 1 380px; padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.featured-body .cat { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-light); font-weight: 600; }
.featured-body h2 { margin: 0; font-size: 28px; line-height: 1.35; }
.featured-body p { margin: 0; color: var(--dark-text); }
.featured-body .meta { font-size: 15px; color: var(--dark-muted); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; padding-bottom: 40px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border-radius: 16px; overflow: hidden; }
.post-card .thumb { height: 210px; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.post-card .cat { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.post-card h3 { margin: 0; font-size: 21px; line-height: 1.35; }
.post-card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text); }
.post-card .meta { font-size: 14px; color: var(--muted); }
.pagination { padding: 0 0 96px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-block; min-width: 44px; padding: 10px 14px; text-align: center; border-radius: 999px; border: 1.5px solid #BDB5A2; text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.empty { font-size: 18px; color: var(--text); padding-bottom: 96px; }

/* Článek */
.single-head { padding: 56px 24px 32px; }
.back { display: inline-block; padding: 12px 0; font-weight: 600; text-decoration: none; font-size: 15px; }
.single-head .eyebrow { margin-top: 24px; }
.single-head h1 { margin: 0 0 20px; font-size: clamp(28px, 4vw, 44px); line-height: 1.3; }
.single-head .meta { margin: 0; color: var(--muted); font-size: 16px; }
.single-hero { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.single-hero img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 20px; display: block; }
.entry { max-width: 680px; margin: 0 auto; padding: 48px 24px 64px; font-size: 19px; line-height: 1.75; color: #24221E; }
.entry h2 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.4; margin: 40px 0 16px; color: var(--ink); }
.entry h3 { font-size: 21px; margin: 32px 0 12px; }
.entry blockquote, .entry .wp-block-quote { margin: 36px 0; padding: 8px 0 8px 28px; border-left: 3px solid var(--brass); font-family: var(--display); font-size: 21px; line-height: 1.5; color: var(--ink); }
.entry img { border-radius: 12px; }
.entry .wp-block-gallery, .entry .alignwide { margin-left: calc(50% - min(550px, 50vw - 24px)); margin-right: calc(50% - min(550px, 50vw - 24px)); }
.entry .wp-block-gallery img { border-radius: 12px; }
.entry figcaption { font-size: 15px; color: var(--muted); }
.cta-band .wrap { max-width: 1100px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { margin: 0 0 10px; font-size: 26px; }
.cta-band p { margin: 0; color: var(--dark-text); font-size: 18px; }

/* Běžná stránka (např. Zásady ochrany osobních údajů) */
.page-content { padding: 56px 24px 96px; }
.page-content h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 24px; }

/* Patička */
.site-footer { background: var(--ink); color: var(--dark-muted); border-top: 1px solid #2A2925; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-footer img { height: 40px; width: auto; filter: invert(1); mix-blend-mode: screen; display: block; }
.site-footer p { margin: 0; font-size: 15px; }
.site-footer a { color: var(--dark-text); }
.site-footer a:hover { color: var(--brass-light); }

.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: 6px; }

/* Tablet a mobil */
@media (max-width: 960px) {
	.about .wrap.cards { grid-template-columns: 1fr; }
	.rules ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.rules ol { grid-template-columns: 1fr; }
}
