/*
Theme Name: DesignDomu
Theme URI: https://designdomu.pl
Author: DesignDomu.pl
Author URI: https://designdomu.pl
Description: Motyw blogowy DesignDomu.pl. Ciepły, redakcyjny blog o wnętrzach, aranżacjach i remontach. Typografia Fraunces / Manrope, paleta ciepłego drewna, brązu, kremu i espresso (inspirowana Aestic). Automatyczne tworzenie kategorii i menu po aktywacji, hero split ze zdjęciem najnowszego wpisu, sekcja atutów, kafelki kategorii, responsywne karty, sticky header z rozwijanym menu kategorii.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: designdomu
Tags: blog, two-columns, custom-menu, featured-images, threaded-comments, translation-ready, sticky-post
*/

/* =========================================================
   DesignDomu.pl — ciepłe drewno, brąz, krem, espresso
   Paleta i typografia inspirowane referencją "Aestic".
   ========================================================= */

:root {
  /* ---- Paleta Aestic ---- */
  --bg:           #F5EFE6;  /* ciepły krem, tło strony */
  --bg-2:         #EDE4D6;  /* piaskowy, sekcje naprzemienne */
  --surface:      #FFFFFF;  /* karty */
  --ink:          #2A2320;  /* główny tekst, prawie-czarny brąz */
  --ink-2:        #6B5D50;  /* tekst drugorzędny */
  --wood:         #8B5E34;  /* główny akcent — brąz drewna */
  --wood-deep:    #6E4A28;  /* hover akcentu */
  --espresso:     #3B2A20;  /* ciemna czekoladowa karta/sekcja */
  --terracotta:   #C4623D;  /* drugi akcent, oszczędnie */
  --line:         #E2D6C4;  /* delikatne linie/obramowania */

  /* Aliasy zgodności (używane w istniejących szablonach page-templates) */
  --text:         var(--ink);
  --text-2:       var(--ink-2);
  --text-3:       #8B7E70;
  --line-2:       #D8C9AF;
  --graphite:     var(--espresso);
  --terracotta-deep: #A94E2E;
  --wood-soft:    #E4CFA8;

  --shadow-1: 0 1px 2px rgba(42, 35, 32, 0.05);
  --shadow-2: 0 10px 26px rgba(42, 35, 32, 0.08);
  --shadow-3: 0 22px 60px rgba(42, 35, 32, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* ---- Typografia ---- */
  --font-head: 'Fraunces', Georgia, serif;
  --font-ui:   'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Aliasy zgodności ze starszymi szablonami */
  --font-serif:  var(--font-head);
  --font-sans:   var(--font-ui);
  --font-script: var(--font-head);

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; border-radius: var(--radius-sm); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.4px;
}
.logo-text { font-weight: 600; }
.logo-dot {
  font-family: var(--font-head);
  font-weight: 500;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--wood);
  margin-left: 2px;
  letter-spacing: 0.2px;
}
.custom-logo-link img {
  max-height: 52px;
  width: auto;
  border-radius: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 230, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 239, 230, 0.98);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  gap: 1.5rem;
}
.main-nav-wrapper { flex: 1; display: flex; justify-content: center; }
.main-nav {
  display: flex;
  gap: clamp(0.85rem, 2.2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li { display: inline-flex; position: relative; }
.main-nav > li { align-items: center; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 8px 2px;
  transition: color .2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: var(--wood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav .current-menu-item > a,
.main-nav .current-cat > a { color: var(--ink); }
.main-nav .current-menu-item > a::after,
.main-nav .current-cat > a::after { transform: scaleX(1); }

/* Dropdown submenu */
.main-nav .menu-item-has-children > a::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  opacity: .6;
  order: 2;
}
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 60;
}
.main-nav li:hover > .sub-menu,
.main-nav li.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu li { display: block; width: 100%; }
.sub-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  white-space: nowrap;
}
.sub-menu a::after { display: none; }
.sub-menu a:hover { background: var(--bg-2); color: var(--wood-deep); }

.header-cta {
  flex: 0 0 auto;
}
.header-cta .btn { padding: 11px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 84px) 0 clamp(40px, 6vw, 70px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 85% 10%, rgba(139, 94, 52, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 65% at 6% 95%, rgba(196, 98, 61, 0.1), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow-1);
  margin: 0 0 1.25rem;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--wood);
  flex: 0 0 auto;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--wood);
}
.hero-sub {
  font-family: var(--font-ui);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-2);
  max-width: 32rem;
  margin: 0 0 2rem;
}
.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ink-2);
  letter-spacing: 0.2px;
}
.hero-meta .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(196, 98, 61, 0.18);
}

.hero-figure {
  margin: 0;
  position: relative;
}
.hero-figure .hero-figure-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  background: var(--surface);
  aspect-ratio: 4 / 5;
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.hero-figure-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(245, 239, 230, 0.94);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(6px);
}
.hero-figure-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--wood);
}
.hero-figure figcaption {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-top: 0.85rem;
  text-align: right;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--wood);
  color: #fff;
  box-shadow: 0 8px 20px rgba(139, 94, 52, 0.28);
}
.btn-primary:hover {
  background: var(--wood-deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(110, 74, 40, 0.34);
}
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 94, 52, 0.3), 0 8px 20px rgba(139, 94, 52, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--wood);
  color: var(--wood-deep);
}

/* ---------- Sekcja atutów ---------- */
.perks {
  padding: clamp(20px, 4vw, 40px) 0 clamp(50px, 7vw, 90px);
}
.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.perk-card {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 210px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.perk-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.perk-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  color: var(--wood);
  font-size: 1rem;
}
.perk-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0.25rem 0 0;
  color: var(--ink);
  max-width: 85%;
}
.perk-desc {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--ink-2);
  margin: 0;
  max-width: 90%;
}
.perk-card.is-dark {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--bg);
}
.perk-card.is-dark .perk-title { color: var(--bg); }
.perk-card.is-dark .perk-desc { color: #D8C9B4; }
.perk-card.is-dark .perk-arrow {
  background: rgba(245, 239, 230, 0.14);
  color: var(--bg);
}

/* ---------- Cat bar ---------- */
.cat-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 239, 230, 0.95);
  position: sticky;
  top: 73px;
  z-index: 30;
  backdrop-filter: blur(8px);
}
.cat-bar-inner {
  display: flex;
  gap: 0.5rem;
  padding: 14px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-bar-inner::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-2);
  transition: all .2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.chip:hover {
  color: var(--ink);
  border-color: var(--wood);
}
.chip.is-active {
  background: var(--espresso);
  color: var(--bg);
  border-color: var(--espresso);
}

/* ---------- Articles section ---------- */
.articles {
  padding: clamp(56px, 8vw, 100px) 0;
}
.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wood);
  margin: 0 0 0.65rem;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--wood);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid var(--line);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
}
.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-2);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .6s ease;
}
.card-media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.75rem;
  color: var(--wood-deep);
  background: linear-gradient(135deg, var(--wood-soft), var(--bg-2));
}
.card:hover .card-media img {
  transform: scale(1.04);
}
.card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--wood-deep);
  background: rgba(139, 94, 52, 0.12);
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.card-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.card-lead {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink-2);
  margin: 0 0 1.25rem;
  flex: 1;
}
.read-more {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--wood);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease, color .2s ease;
}
.card:hover .read-more {
  gap: 12px;
  color: var(--wood-deep);
}

.grid-empty {
  text-align: center;
  font-style: italic;
  color: var(--text-3);
  padding: 3rem 0;
}

/* ---------- Kafelki kategorii ---------- */
.cat-tiles {
  padding: clamp(50px, 7vw, 90px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cat-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease;
}
.cat-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
}
/* Delikatny wzór linii w tle (bez zdjęć) */
.cat-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,0.14), transparent 42%),
    repeating-linear-gradient(135deg, rgba(0,0,0,0.035) 0 2px, transparent 2px 22px);
  opacity: .9;
  transition: transform .5s ease, opacity .35s ease;
}
.cat-tile:hover::before { transform: scale(1.06); }
/* Warianty kolorystyczne (odcienie drewna / kremu / espresso) */
.cat-tile-1 { background: linear-gradient(150deg, #EFE3CE, #E4CFA8); }
.cat-tile-2 { background: linear-gradient(150deg, #E8D3B4, #D8B98C); }
.cat-tile-3 { background: linear-gradient(150deg, #D9BE95, #C4A374); }
.cat-tile-4 { background: linear-gradient(150deg, #6E4A28, #8B5E34); }
.cat-tile-5 { background: linear-gradient(150deg, #B5814E, #8B5E34); }
.cat-tile-6 { background: linear-gradient(150deg, #5A3F2A, #3B2A20); }
/* Kolor tekstu: ciemne kafelki -> jasny tekst */
.cat-tile-4, .cat-tile-5, .cat-tile-6 { color: #F5EFE6; }
.cat-tile-1, .cat-tile-2, .cat-tile-3 { color: var(--espresso); }
.cat-tile-eyebrow {
  position: relative;
  z-index: 2;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .72;
}
.cat-tile-name {
  position: relative;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 500;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 90%;
}
.cat-tile-arrow {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  right: 1.35rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  font-size: 0.95rem;
  transition: background .3s ease, color .3s ease;
}
.cat-tile-1:hover .cat-tile-arrow,
.cat-tile-2:hover .cat-tile-arrow,
.cat-tile-3:hover .cat-tile-arrow { background: var(--espresso); color: #F5EFE6; }
.cat-tile-4:hover .cat-tile-arrow,
.cat-tile-5:hover .cat-tile-arrow,
.cat-tile-6:hover .cat-tile-arrow { background: #F5EFE6; color: var(--espresso); }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(50px, 7vw, 80px) 0 28px;
  background: var(--espresso);
  color: #D8CBB8;
  border-top: 1px solid var(--espresso);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.footer-brand .logo-text { font-size: 1.9rem; font-family: var(--font-head); font-weight: 600; color: #F5EFE6; }
.footer-brand .logo-dot { font-size: 1rem; font-style: italic; color: var(--wood-soft); }
.footer-brand p {
  margin-top: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: #C7B9A6;
  max-width: 22rem;
}
.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 500;
  font-style: italic;
  font-size: 1.05rem;
  color: #F5EFE6;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: #C7B9A6;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--wood-soft); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 239, 230, 0.12);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: #A99476;
}

/* ---------- Single post ---------- */
.single-hero {
  padding: clamp(40px, 6vw, 70px) 0 clamp(20px, 3vw, 30px);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-bottom: 1px solid var(--line);
}
.single-hero .single-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wood);
  margin: 0 0 0.5rem;
}
.single-hero h1.entry-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  color: var(--ink);
  max-width: 60rem;
}
.single-hero .entry-meta {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-3);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.single-hero .entry-meta a { color: var(--wood-deep); }
.single-thumb {
  margin: clamp(20px, 3vw, 36px) 0 0;
}
.single-thumb img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
}

.entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  font-family: var(--font-ui);
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--ink);
}
.entry-content > * { margin: 0 0 1.25rem; }
.entry-content p { margin: 0 0 1.25rem; }
.entry-content h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
}
.entry-content h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}
.entry-content h4 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--ink);
}
.entry-content a {
  color: var(--wood-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--ink); }
.entry-content ul,
.entry-content ol { padding-left: 1.5rem; margin: 0 0 1.25rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote {
  border-left: 3px solid var(--wood);
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-2);
}
.entry-content img,
.entry-content figure {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.75rem 0;
}
.entry-content figcaption {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-3);
  text-align: center;
  margin-top: 0.5rem;
}
.entry-content code {
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.entry-content pre {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.entry-content th,
.entry-content td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.entry-content th { background: var(--bg-2); font-weight: 700; }

.entry-tags {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter) 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.entry-tags a {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-2);
}
.entry-tags a:hover {
  border-color: var(--wood);
  color: var(--wood-deep);
}

.entry-nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem var(--gutter) 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.entry-nav a {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color .2s ease, transform .2s ease;
}
.entry-nav a:hover { border-color: var(--wood); transform: translateY(-2px); }
.entry-nav .nav-label {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--wood-deep);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.25rem;
}
.entry-nav .nav-next { text-align: right; }

/* ---------- Related posts ---------- */
.related-posts {
  padding: clamp(40px, 6vw, 70px) 0 clamp(60px, 8vw, 90px);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.related-posts .section-head { text-align: left; margin-bottom: 2rem; }

/* ---------- Comments ---------- */
.comments-area {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem var(--gutter) 4rem;
}
.comments-area h2,
.comments-area h3 {
  font-family: var(--font-head);
  font-weight: 500;
  margin: 0 0 1rem;
}
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  margin-bottom: 0.85rem;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit {
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--espresso);
  color: #fff;
  font-weight: 600;
}

/* ---------- Search / 404 / Page ---------- */
.page-hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px);
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.015em;
  margin: 0;
}
.page-hero p { font-family: var(--font-ui); color: var(--ink-2); margin: 0.75rem 0 0; }
.archive-desc { color: var(--ink-2); margin-top: 0.75rem; }
.search-form {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  background: var(--surface);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.search-form input {
  border: none;
  background: transparent;
  padding: 10px 16px;
  font: inherit;
  min-width: 220px;
  border-radius: 999px;
}
.search-form input:focus { outline: none; }
.search-form button {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--espresso);
  color: #fff;
  font-weight: 600;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 3rem 0 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--ink-2);
  min-width: 38px;
  text-align: center;
}
.pagination .current {
  background: var(--espresso);
  color: #fff;
  border-color: var(--espresso);
}
.pagination a:hover { border-color: var(--wood); color: var(--wood-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-tiles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .hero-figure { order: -1; max-width: 540px; margin: 0 auto; }
  .entry-nav { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .main-nav-wrapper { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-header.menu-open .main-nav-wrapper {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 73px);
    overflow-y: auto;
  }
  .site-header.menu-open .main-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem var(--gutter) 1.5rem;
    gap: 0.25rem;
  }
  .main-nav > li { flex-direction: column; align-items: stretch; width: 100%; }
  .main-nav a { padding: 12px 0; font-size: 1.05rem; width: 100%; justify-content: space-between; }
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg-2);
    display: none;
    margin: 0.25rem 0 0.5rem;
    width: 100%;
  }
  .main-nav li.is-open > .sub-menu { display: block; }
  .main-nav li:hover > .sub-menu { display: none; }
  .main-nav li.is-open:hover > .sub-menu { display: block; }
  .sub-menu a { padding: 10px 12px; }
  .cat-bar { top: 73px; }
  .hero { padding-top: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .perks-grid { grid-template-columns: 1fr; }
  .cat-tiles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(1.85rem, 9vw, 2.4rem); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- WP defaults ---------- */
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-family: var(--font-ui); color: var(--text-3); text-align: center; margin-top: 0.25rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.gallery-item img { border-radius: var(--radius-sm); }
.sticky .card { border-color: var(--wood); }
.bypostauthor {}

/* =========================================================
   O blogu (page-template o-mnie)
   ========================================================= */
.o-mnie-hero {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(1100px 420px at 80% -20%, rgba(139, 94, 52, 0.12), transparent 60%),
    radial-gradient(900px 360px at 0% 0%, rgba(196, 98, 61, 0.1), transparent 60%);
}
.o-mnie-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.o-mnie-hero-copy { max-width: 36rem; }
.o-mnie-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 1rem;
  color: var(--ink);
}
.o-mnie-title em {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  color: var(--wood);
}
.o-mnie-lead {
  font-family: var(--font-ui);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}
.o-mnie-hero-figure {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  background: var(--bg-2);
  aspect-ratio: 3 / 4;
}
.o-mnie-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.o-mnie-section {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}
.o-mnie-section-alt {
  background: var(--bg-2);
}
.o-mnie-narrow {
  max-width: 720px;
}
.o-mnie-h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.o-mnie-section p {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 1rem;
}
.o-mnie-section p strong { color: var(--ink); }

.o-mnie-quote {
  margin: 0.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 3px solid var(--wood);
  background: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-head);
  font-style: italic;
  color: var(--ink-2);
  font-size: 1.05rem;
  box-shadow: var(--shadow-1);
}

.o-mnie-promise {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.o-mnie-signature {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--wood-deep);
  line-height: 1;
  margin-top: 1.5rem;
}

/* =========================================================
   Kontakt
   ========================================================= */
.kontakt-hero {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(1rem, 2vw, 1.5rem);
  background: radial-gradient(900px 360px at 80% -10%, rgba(139, 94, 52, 0.12), transparent 60%);
  text-align: center;
}
.kontakt-hero-inner { max-width: 640px; margin: 0 auto; }
.kontakt-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}
.kontakt-lead {
  font-family: var(--font-ui);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  margin: 0;
}

.kontakt-section {
  padding: clamp(1.5rem, 3vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
}
.kontakt-narrow {
  max-width: 640px;
}

.kontakt-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  line-height: 1.55;
  border: 1px solid transparent;
}
.kontakt-alert-success {
  background: #EEF6EC;
  border-color: #C9E2C4;
  color: #33582E;
}
.kontakt-alert-error {
  background: #FBEDED;
  border-color: #E8C5C5;
  color: #8B2D2D;
}

.kontakt-form {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.kontakt-form-row {
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.kontakt-form-row label {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.kontakt-required {
  color: var(--wood-deep);
  font-weight: 700;
}
.kontakt-form-row input,
.kontakt-form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.kontakt-form-row input:focus,
.kontakt-form-row textarea:focus {
  outline: none;
  border-color: var(--wood-deep);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(110, 74, 40, 0.16);
}
.kontakt-form-row textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}

.kontakt-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.kontakt-form-submit {
  margin: 1rem 0 0;
  text-align: center;
}
.kontakt-form-submit .btn {
  min-width: 240px;
}
.kontakt-form-note {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text-3);
  margin: 1rem 0 0;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .o-mnie-hero-inner {
    grid-template-columns: 1fr;
  }
  .o-mnie-hero-figure {
    max-width: 420px;
    margin: 0 auto;
  }
}
