/*
Theme Name: Fara Semněvice
Theme URI: https://fara-semnevice.cz
Author: Studio Vize
Author URI: https://studiovize.cz
Description: WordPress téma pro Faru Semněvice – Místo, které se pamatuje
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fara-semnevice
Tags: one-column, custom-menu, featured-images
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #f5f0e8;
  --cream-dark: #ece5d5;
  --brown: #3a2f27;
  --brown-light: #5c4a3a;
  --brown-muted: #8a7565;
  --accent: #6b7c5e;
  --white: #fffdf8;
  --border: #c9bfae;
  --tag-work: #6b7c5e;
  --tag-change: #8b6f47;
  --tag-people: #7a6478;
  --font-display: 'Amatica SC', cursive;
  --font-body: 'Vollkorn', 'Georgia', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto;
}

a { color: var(--brown); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: padding 0.3s ease;
}

.site-header.scrolled {
  padding: 10px 0;
}

.site-header.scrolled .site-logo-img {
  max-width: 114px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  flex-direction: column;
}

.site-logo-img {
  max-width: 146px;
  height: auto;
  transition: max-width 0.3s ease;
}

.site-logo-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.site-logo-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--brown-muted);
  letter-spacing: 0.08em;
  font-style: italic;
}

.site-nav { display: flex; gap: 8px; }

.site-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  transition: color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.site-nav a:hover { 
  color: var(--accent); 
}

.site-nav a.active,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  position: relative;
}

.site-nav a.active::after,
.site-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.site-nav .nav-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--brown-muted);
  letter-spacing: 0.06em;
  font-family: var(--font-body);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: url('lib/foto_banner.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 60%);
  z-index: 1;
}

.hero-bg {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
  padding: 0 24px;
}

.hero-logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}

.hero-logo-main {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-logo-main:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.hero-logo {
  max-width: 380px;
  width: 80%;
  height: auto;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.hero-logo-link {
  position: absolute;
  left: -44px;
  top: 20%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  animation: hero-link-float 3s ease-in-out infinite;
}

@keyframes hero-link-float {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(6px) rotate(2deg);
  }
}

.hero-logo-link:hover {
  opacity: 1;
  animation-play-state: paused;
  transform: scale(1.05);
}

.hero-logo-link span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-logo-arrow {
  width: 60px;
  height: 30px;
  color: var(--white);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-logo-link {
    left: -7px;
    scale: 0.9;
  }
  
  .hero-logo-arrow {
    width: 45px;
    height: 22px;
  }
}

.hero-overtitle {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-quote {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 8px;
}

.hero-quote::before { content: '\201E'; }
.hero-quote::after { content: '\201C'; }

.hero-scroll {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

.hero-scroll-img {
  width: 44px;
  height: 44px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== SECTION COMMON ========== */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--white);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 44px;
}

.section-title + .section-subtitle {
  margin-top: -16px;
}

.section--porta .section-title {
  margin-bottom: 16px;
}
.section--porta .section-subtitle {
  margin-bottom: 16px;
}

.section-title::before,
.section-title::after {
  content: '—';
  font-size: 0.8em;
  color: var(--border);
  vertical-align: middle;
}

.section-title::before { margin-right: 0.5em; }
.section-title::after { margin-left: 0.5em; }

.section-title-ornament {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 12px auto 0;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--brown-muted);
  margin-bottom: 29px;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-style: italic;
}

/* ========== Z blogu ========== */
.section--cesty {
  overflow: hidden;
}

.section--vita {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.vita-listy {
  position: absolute;
  top: -34px;
  right: -43px;
  width: 200px;
  height: auto;
  color: var(--border);
  opacity: 0.6;
  pointer-events: none;
}

.cesty-listy {
  position: absolute;
  top: 18px;
  left: -114px;
  width: 200px;
  height: auto;
  color: var(--border);
  opacity: 0.6;
  pointer-events: none;
}

.paths-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.path-card {
  flex: 0 1 calc(25% - 21px);
  min-width: 220px;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 44px 28px 36px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}

.path-card::before,
.path-card::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--border);
  border-style: solid;
  opacity: 0.5;
  transition: opacity 0.25s;
}

.path-card::before {
  top: 8px;
  left: 8px;
  border-width: 1px 0 0 1px;
}

.path-card::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 1px 1px 0;
}

.path-card:hover::before,
.path-card:hover::after {
  opacity: 1;
  border-color: var(--accent);
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(58,47,39,0.1);
}

.path-card:hover .btn-outline {
  background: var(--brown);
  color: var(--white);
}

.path-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--brown-light);
}

.path-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.path-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.path-desc {
  font-size: 1rem;
  color: var(--brown-muted);
  margin-bottom: 26px;
}

.btn-outline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1.5px solid var(--brown);
  position: relative;
  border-radius: 3px;
  padding: 10px 22px;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--brown);
  color: var(--white);
}

/* ========== SECTION DIVIDER ========== */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
  color: var(--border);
}

.section-divider::before,
.section-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border));
}

.section-divider::after {
  background: linear-gradient(90deg, var(--border), transparent);
}

.section-divider svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

/* ========== ESSENTIA ========== */
.essentia {
  text-align: center;
}

.essentia-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.essentia-title span {
  font-weight: 400;
  color: var(--brown-muted);
  font-style: italic;
}

.essentia-intro-text {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--brown-light);
}

.link-arrow {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--brown);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ========== VITA ========== */
.vita-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 36px;
}

.vita-header .section-title {
  text-align: left;
  margin-bottom: 0;
}

.vita-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.vita-card {
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.vita-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(58,47,39,0.1);
}

.vita-card-img {
  width: 100%;
  height: 180px;
  background: var(--border);
  position: relative;
}

.vita-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107,124,94,0.15), rgba(139,111,71,0.1));
}

.vita-card-body {
  padding: 20px 22px 24px;
}

.vita-card-date {
  font-size: 0.88rem;
  color: var(--brown-muted);
  margin-bottom: 8px;
}

.vita-card-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 16px;
}

.vita-card-title em {
  font-style: italic;
  font-weight: 500;
}

.vita-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vita-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  padding: 3px 10px;
  border-radius: 2px;
}

.vita-tag--work { background: var(--tag-work); }
.vita-tag--change { background: var(--tag-change); }
.vita-tag--people { background: var(--tag-people); }

/* ========== CATEGORY FILTERS ========== */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.category-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  border: 2px solid var(--filter-color, var(--brown));
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
  min-width: 100px;
}

.category-filter-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--filter-color, var(--brown));
  transition: color 0.25s ease;
}

.category-filter-desc {
  font-size: 0.72rem;
  color: var(--brown-muted);
  margin-top: 2px;
  transition: color 0.25s ease;
}

.category-filter:hover {
  background: var(--filter-color, var(--brown));
  transform: translateY(-2px);
}

.category-filter:hover .category-filter-name,
.category-filter:hover .category-filter-desc {
  color: var(--white);
}

.category-filter.active {
  background: var(--filter-color, var(--brown));
}

.category-filter.active .category-filter-name,
.category-filter.active .category-filter-desc {
  color: var(--white);
}

/* ========== FOOTER ========== */
.site-footer {
  position: relative;
  color: var(--cream);
  padding: 56px 0 0;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: url('lib/foto_banner.jpg') center/cover no-repeat;
  z-index: 0;
}

.footer-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(58, 47, 39, 0.85);
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--cream);
}

.footer-col p,
.footer-col a {
  font-size: 1.05rem;
  color: rgba(245, 240, 232, 0.85);
  line-height: 1.9;
}

.footer-col a:hover { color: var(--cream); }

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-link svg {
  flex-shrink: 0;
  stroke: rgba(245, 240, 232, 0.7);
}

.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-address svg {
  flex-shrink: 0;
  margin-top: 3px;
  stroke: rgba(245, 240, 232, 0.7);
}

.footer-map-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-map-link:hover {
  color: var(--brown);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 240, 232, 0.4);
  border-radius: 50%;
  transition: border-color 0.2s, background 0.2s;
}

.footer-social a:hover {
  border-color: var(--cream);
  background: var(--cream);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  color: rgba(245, 240, 232, 0.8);
  transition: color 0.2s;
}

.footer-social a:hover svg {
  color: var(--brown);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.2);
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.6);
}

.footer-admin-link {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.4);
  text-decoration: none;
}

.footer-admin-link:hover {
  color: rgba(245, 240, 232, 0.8);
}

/* ========== 404 ========== */
.page-404 {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.page-404-title {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--brown-muted);
  margin-bottom: 16px;
}

.page-404-text {
  font-size: 1.1rem;
  color: var(--brown-light);
  margin-bottom: 32px;
}

/* ========== SINGLE POST ========== */
.single-post-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 298px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.single-post-hero.has-image {
  margin-bottom: 48px;
}

.single-post-hero.no-image {
  background: var(--cream-dark);
}

.single-post-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.single-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 2;
}

.single-post-header {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 48px 24px;
  text-align: center;
}

.single-post-date {
  font-size: 1.1rem;
  color: var(--brown-muted);
  margin-bottom: 16px;
}

.single-post-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--brown);
}

.single-post-header .vita-tags {
  justify-content: center;
  margin-top: 12px;
}

.single-post-header .vita-tag {
  font-size: 0.85rem;
  padding: 5px 14px;
}

.single-post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 48px;
  font-size: 1.05rem;
  line-height: 1.85;
}

.single-post-content p {
  margin-bottom: 1.5em;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 2em 0 0.8em;
  letter-spacing: 0.05em;
}

.single-post-content h2 { font-size: 1.6rem; }
.single-post-content h3 { font-size: 1.3rem; }
.single-post-content h4 { font-size: 1.1rem; }

.single-post-content img {
  border-radius: 4px;
  margin: 1.5em 0;
}

.single-post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--brown-light);
}

.single-post-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.single-post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 45%;
  transition: color 0.2s;
}

.single-post-nav-link:hover {
  color: var(--accent);
}

.single-post-nav-link--next {
  text-align: right;
  margin-left: auto;
}

.single-post-nav-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-muted);
}

.single-post-nav-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.single-post-back {
  text-align: center;
  padding: 24px 0 60px;
}

/* ========== ARCHIVE ========== */
.section--archive {
  padding-top: 60px;
}

.vita-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.vita-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vita-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.vita-card-placeholder img {
  width: 60%;
  max-width: 120px;
  height: auto;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pagination a:hover {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
}

.pagination .current {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
}

.no-posts {
  text-align: center;
  font-size: 1.1rem;
  color: var(--brown-muted);
  padding: 60px 0;
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.hamburger-line:nth-child(1) { margin-bottom: 6px; }
.hamburger-line:nth-child(3) { margin-top: 6px; }

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 47, 39, 0.97);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
  padding: 80px 0 40px;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px;
  width: 100%;
}

.mobile-menu-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 24px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

.mobile-menu-overlay.active .mobile-menu-nav a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(7) { transition-delay: 0.4s; }

.mobile-nav-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.2;
}

.mobile-nav-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(245, 240, 232, 0.6);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.mobile-menu-nav a:hover .mobile-nav-title,
.mobile-menu-nav a[aria-current="page"] .mobile-nav-title {
  color: var(--accent);
}

.mobile-menu-nav a:hover .mobile-nav-sub,
.mobile-menu-nav a[aria-current="page"] .mobile-nav-sub {
  color: rgba(107, 124, 94, 0.8);
}

body.mobile-menu-open {
  overflow: hidden;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .site-nav { display: none; }
  
  .mobile-menu-toggle { display: flex; }

  .hero-quote { font-size: 1.4rem; }

  .paths-grid {
    flex-direction: column;
    align-items: center;
  }

  .path-card {
    flex: 0 1 100%;
    max-width: 340px;
  }

  .vita-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .vita-header { flex-direction: column; gap: 8px; }
  .vita-header .section-title { text-align: center; }
  .vita-header .link-arrow { align-self: center; }

  .section { padding: 56px 0; }
  
  .site-header .container {
    padding: 0 16px;
  }
  
  .site-logo-img {
    max-width: 120px;
  }
  
  .site-header.scrolled .site-logo-img {
    max-width: 100px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .path-card {
    flex: 0 1 calc(50% - 14px);
  }

  .vita-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .site-nav { gap: 16px; }
  
  .site-nav a {
    font-size: 0.92rem;
    padding: 8px 18px;
  }
  
  .site-nav .nav-sub {
    font-size: 0.78rem;
  }
}

/* ========== ESSENTIA PAGE ========== */
.essentia-page {
  background: var(--cream);
}

.essentia-hero {
  position: relative;
  background: var(--brown);
  padding: 80px 24px;
  text-align: center;
  overflow: hidden;
}

.essentia-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('lib/foto_banner.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.essentia-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brown);
  opacity: 0.6;
  z-index: 1;
}

.essentia-hero-content {
  position: relative;
  z-index: 2;
}

.essentia-hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.essentia-hero-title::before,
.essentia-hero-title::after {
  content: '—';
  font-size: 0.6em;
  color: var(--brown-muted);
  vertical-align: middle;
}

.essentia-hero-title::before { margin-right: 0.5em; }
.essentia-hero-title::after { margin-left: 0.5em; }

.essentia-hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: rgba(245, 240, 232, 0.8);
  font-style: italic;
}

.essentia-section {
  padding: 80px 0;
}

.essentia-section--alt {
  background: var(--white);
}

.essentia-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}

.essentia-row--reverse {
  direction: rtl;
}

.essentia-row--reverse > * {
  direction: ltr;
}

.essentia-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--brown-light);
}

.essentia-text p {
  margin-bottom: 1.2em;
}

.essentia-text p:last-child,
.essentia-text ul:last-child {
  margin-bottom: 0;
}

.essentia-lead {
  font-size: 1.2rem;
  color: var(--brown);
  font-weight: 500;
  line-height: 1.7;
}

.essentia-text em {
  font-style: italic;
  color: var(--accent);
}

.essentia-text strong {
  font-weight: 600;
  color: var(--brown);
}

.essentia-text ul {
  margin: 1em 0 1.5em 1.5em;
  list-style: none;
}

.essentia-text ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.5em;
}

.essentia-text ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.essentia-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brown);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.essentia-heading--secondary {
  margin-top: 2em;
}

.essentia-image {
  position: relative;
  min-height: 200px;
}

.essentia-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(58, 47, 39, 0.15);
}

.essentia-image::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 60px;
  height: 60px;
  border-left: 2px solid var(--border);
  border-top: 2px solid var(--border);
  opacity: 0.6;
  pointer-events: none;
}

.essentia-image::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 60px;
  height: 60px;
  border-right: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  opacity: 0.6;
  pointer-events: none;
}

/* Quote Section */
.essentia-quote-section {
  background: var(--cream-dark);
  padding: 100px 0;
}

.essentia-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.essentia-quote .essentia-heading {
  margin-bottom: 32px;
}

.essentia-quote p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--brown-light);
  margin-bottom: 1em;
}

.essentia-quote em {
  font-style: italic;
  color: var(--accent);
}

.essentia-quote strong {
  font-weight: 600;
  color: var(--brown);
}

.essentia-quote-list {
  list-style: none;
  margin: 2em 0;
  padding: 0;
}

.essentia-quote-list li {
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 0.6em;
  font-style: italic;
}

.essentia-final-quote {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--brown);
  margin-top: 2em;
  line-height: 1.6;
}

.essentia-final-quote span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-top: 12px;
}

/* Essentia Responsive */
@media (max-width: 900px) {
  .essentia-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .essentia-row--reverse {
    direction: ltr;
  }

  .essentia-image {
    order: -1;
    min-height: 280px;
  }

  .essentia-hero-title {
    font-size: 2.8rem;
  }

  .essentia-section {
    padding: 60px 0;
  }

  .essentia-quote-section {
    padding: 60px 0;
  }

  .essentia-final-quote {
    font-size: 1.25rem;
  }

  .essentia-final-quote span {
    font-size: 1.4rem;
  }
}

/* ========== PORTA SECTION (Homepage) ========== */
.section--porta {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.porta-listy {
  position: absolute;
  top: -34px;
  right: -43px;
  width: 200px;
  height: auto;
  color: var(--border);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.section-title-sub {
  font-weight: 400;
  color: var(--brown-muted);
  font-style: italic;
  font-size: 0.7em;
}

.porta-intro {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--brown-light);
}

.porta-intro p {
  margin-bottom: 1em;
}

.porta-intro p:last-child {
  margin-bottom: 0;
}

.porta-intro em {
  font-style: italic;
  color: var(--accent);
}

.porta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.porta-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
}

.porta-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 40px rgba(58, 47, 39, 0.15);
  z-index: 10;
}

.porta-card-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
}

.porta-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.porta-card-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: var(--brown);
}

.porta-card-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.porta-card-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--brown-light);
}

/* Porta Responsive */
@media (max-width: 1024px) {
  .porta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .porta-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* Simple Lightbox - hide title */
.slb_template_tag_item_title {
  display: none !important;
}
