/*
Theme Name: Nyakati Nzuri
Theme URI: https://www.ridgebackostrava.cz
Author: CHS Nyakati Nzuri
Description: Vlastní čisté téma pro chovatelskou stanici rhodéských ridgebacků. Bez parent tématu; vizuálně věrné původnímu webu (vínová, zlatá, krémový obsah, psí hlavy v rozích).
Version: 1.3.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: nyakati
*/

/* ---------- písma (self-hosted, latin + latin-ext pro češtinu) ---------- */
@font-face {
	font-family: "Marcellus";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/Marcellus-normal-latin-ext.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: "Marcellus";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/Marcellus-normal-latin.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;
}
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("fonts/SourceSans3-normal-latin-ext.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: "Source Sans 3";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("fonts/SourceSans3-normal-latin.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;
}
@font-face {
	font-family: "Source Sans 3";
	font-style: italic;
	font-weight: 200 900;
	font-display: swap;
	src: url("fonts/SourceSans3-italic-latin-ext.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: "Source Sans 3";
	font-style: italic;
	font-weight: 200 900;
	font-display: swap;
	src: url("fonts/SourceSans3-italic-latin.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 {
	--nn-maroon: #330000;      /* pozadí webu */
	--nn-bordeaux: #640d15;    /* lišta menu */
	--nn-gold: #f0b848;        /* titulek, položky menu */
	--nn-gold-link: #c9a330;   /* odkazy v obsahu */
	--nn-orange: #ff7f3f;      /* hover odkazů */
	--nn-bronze: #a06f3a;      /* aktivní položka menu, tlačítka */
	--nn-olive: #847f67;       /* submenu, odkazy v patičce */
	--nn-cream: #fff8db;       /* podklad obsahu */
	--nn-text: #3a3a3a;
	--nn-line: #e8ddb8;
	--nn-font: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--nn-font-display: "Marcellus", "Times New Roman", serif;
	--nn-container: 1055px;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: var(--nn-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
	color: var(--nn-text);
	background-color: var(--nn-maroon);
	background-image: url("images/nn-corner-lion.png"), url("images/nn-corner-dog.png");
	background-position: 100% 0, 0 0;
	background-repeat: no-repeat, no-repeat;
	background-size: 192px 120px, 120px 150px;
}
img { max-width: 100%; height: auto; }
a { color: var(--nn-gold-link); text-decoration: none; }
a:hover { color: var(--nn-orange); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--nn-text); font-weight: 400; font-family: var(--nn-font-display); }

.nn-container { max-width: var(--nn-container); margin: 0 auto; }

/* ---------- hlavička (centrovaná, zlatý titulek jako originál) ---------- */
.site-header { padding: 42px 20px 30px; text-align: center; }
.site-branding a { color: var(--nn-gold); }
.site-title { margin: 0; font-size: clamp(42px, 8vw, 78px); font-weight: 400; font-family: var(--nn-font-display); color: var(--nn-gold); line-height: 1.1; }
.site-tagline { margin: 6px 0 0; font-size: 20px; font-weight: 300; font-family: var(--nn-font-display); color: var(--nn-gold); letter-spacing: 2px; }

/* ---------- navigace (bordó lišta, zlaté položky) ---------- */
.nav-wrap { max-width: var(--nn-container); margin: 0 auto; background: var(--nn-bordeaux); }
.nn-nav-toggle { display: none; width: 100%; background: var(--nn-bordeaux); border: 0; color: var(--nn-gold); font-size: 18px; font-family: var(--nn-font); padding: 12px; cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 15px 18px; color: var(--nn-gold); font-size: 17px; font-weight: 400; font-family: var(--nn-font-display); }
.main-nav li:hover > a, .main-nav li.current-menu-item > a, .main-nav li.current_page_item > a { background: var(--nn-bronze); color: #fff; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 50; min-width: 220px; background: var(--nn-olive); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { color: #fff; font-size: 15px; padding: 10px 14px; }
.main-nav .sub-menu a:hover { background: var(--nn-bronze); }
.main-nav .sub-menu .sub-menu { top: 0; left: 100%; }

@media (max-width: 960px) {
	.nn-nav-toggle { display: block; }
	.main-nav { display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
	.main-nav .sub-menu { position: static; display: block; background: rgba(0, 0, 0, 0.2); margin-left: 16px; }
}

/* ---------- obsah (krémový kontejner na vínové jako originál) ---------- */
.site-main { max-width: var(--nn-container); margin: 0 auto 50px; background: var(--nn-cream); padding: 34px clamp(18px, 4vw, 48px) 46px; }
.nn-page h1, .nn-single h1 { font-size: 28px; margin-top: 0; }
.nn-single__meta { color: #888; font-size: 14px; margin-bottom: 18px; }
.nn-single__meta a { color: var(--nn-gold-link); }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.entry-content iframe, .entry-content video, .entry-content table { max-width: 100%; }

/* ---------- hero na úvodce ---------- */
.nn-hero { max-width: var(--nn-container); margin: 0 auto; background: var(--nn-cream); padding: 36px clamp(18px, 4vw, 48px) 8px; text-align: center; }
.nn-hero h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 300; margin: 0 0 14px; }
.nn-hero h1 strong { color: var(--nn-bronze); font-weight: 600; }
.nn-hero__content { max-width: 780px; margin: 0 auto; }
.nn-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }

/* ---------- výpis novinek ---------- */
.nn-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.nn-section-head h2 { margin: 0; font-size: 24px; font-weight: 300; }
.nn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.nn-card { background: #fff; border: 1px solid var(--nn-line); overflow: hidden; display: flex; flex-direction: column; }
.nn-card:hover { box-shadow: 0 6px 18px rgba(51, 0, 0, 0.18); }
.nn-card__thumb { display: block; background: #f1e9c8; }
.nn-card__thumb img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.nn-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.nn-card__meta { font-size: 13px; color: #8a8578; display: flex; gap: 10px; flex-wrap: wrap; }
.nn-card__meta a { color: var(--nn-gold-link); }
.nn-card__title { margin: 0; font-size: 19px; font-weight: 400; font-family: var(--nn-font-display); }
.nn-card__title a { color: var(--nn-text); }
.nn-card__title a:hover { color: var(--nn-bronze); }
.nn-card__excerpt { margin: 0; font-size: 14px; color: #5c594f; }

.nn-archive-title { font-weight: 300; font-size: 28px; margin: 0 0 22px; }
.nn-pagination { margin-top: 28px; display: flex; gap: 6px; flex-wrap: wrap; }
.nn-pagination .page-numbers { padding: 6px 13px; background: #fff; border: 1px solid var(--nn-line); color: var(--nn-text); }
.nn-pagination .page-numbers.current { background: var(--nn-bronze); border-color: var(--nn-bronze); color: #fff; }

.nn-btn { display: inline-block; background: var(--nn-bronze); color: #fff; padding: 10px 22px; font-weight: 300; }
.nn-btn:hover { background: var(--nn-bordeaux); color: #fff; }
.nn-btn--ghost { background: transparent; border: 1px solid var(--nn-bronze); color: var(--nn-bronze); }
.nn-btn--ghost:hover { background: var(--nn-bronze); color: #fff; }

/* ---------- nativní WP galerie ---------- */
.entry-content .gallery { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin: 20px 0; }
.entry-content .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.entry-content .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.entry-content .gallery-item { margin: 0; }
.entry-content .gallery-icon img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; border: 1px solid var(--nn-line); background: #fff; padding: 3px; }
@media (max-width: 600px) { .entry-content .gallery, .entry-content .gallery-columns-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- patička (černá jako originál) ---------- */
.site-footer { background: #000; color: #fff; font-size: 15px; font-weight: 200; }
.site-footer__inner { max-width: var(--nn-container); margin: 0 auto; padding: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--nn-olive); }
.site-footer a:hover { color: #fff; }
