/*
Theme Name: Domito Classic
Author: polskiepompy.com
Version: 1.1
Description: Klasyczny motyw WordPress
*/
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;700&display=swap');
/* =====================
   Zmienne globalne
===================== */ :root {
  --font-primary: 'Rajdhani', sans-serif;
  --color-text: #1f1f1f;
  --color-bg: #ffffff;
  --color-primary: #c6181d;
  --color-header-scrolled: #ffffff;
  --color-menu-active: #000000;
  --color-shadow: rgba(0, 0, 0, 0.1);
  --header-height: 100px;
  --container-max-width: 1320px;
  --transition-fast: 0.3s ease;
}
/* =====================
   Ogólne ustawienia
===================== */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding-top: 70px;
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg);
}
p {
  margin: 0 !important;
}
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}
/* =====================
   Nagłówek
===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 9999;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  padding-top: 20px;
}
.site-header.scrolled, .site-header.is-fixed {
  background: var(--color-header-scrolled);
  box-shadow: 0 2px 6px var(--color-shadow);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}
.logo {
  display: flex;
  align-items: center;
  height: var(--header-height);
}
.logo img {
  max-height: 80px;
  height: auto;
  width: auto;
  margin-right: 60px;
}
/* =====================
   Nawigacja główna
===================== */
.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: var(--header-height);
  z-index: 3000;
}
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: 16px;
}
.menu li {
  position: relative;
}
.menu > li > a {
  padding: 22px 10px;
  color: #000;
  background: transparent;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition-fast);
  display: inline-block;
}
.menu > li:hover > a {
  background-color: var(--color-primary);
  color: #fff;
}
.menu > li.current-menu-item > a, .menu > li.current_page_item > a, .menu > li.current-menu-parent > a {
  background-color: var(--color-menu-active);
  color: #fff;
  font-weight: 600;
}
.menu > li.menu-item-has-children > a::after {
  content: "▸";
  font-size: 14px;
  margin-left: 6px;
	display: inline-block;
  transition: transform 0.3s ease;
}

.menu > li.open > a::after {
  transform: rotate(90deg);
}
.menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(90deg);
}
.menu li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-bg);
  box-shadow: 0 4px 8px var(--color-shadow);
  list-style: none;
  display: none;
  margin: 0;
  padding: 0;
  border-radius: 0 0 6px 6px;
  z-index: 4000;
}
.menu li:hover > ul {
  display: block;
}
.menu li ul li a {
  display: block;
  padding: 12px 16px;
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 15px;
  text-decoration: none;
  transition: background-color var(--transition-fast);
}
.menu li ul li a:hover {
  background-color: #f1f1f1;
}
/* Hover (tylko desktop) */
@media (min-width: 769px) {
  .menu li.menu-item-has-children:hover > ul {
    display: block;
  }
}
/* =====================
   Burger menu
===================== */
.burger {
  display: none;
  background: none !important;
  border: none !important;
  font-size: 28px;
  color: #000 !important;
  cursor: pointer;
  z-index: 10000;
  padding: 0;
  margin: 0;
  line-height: 1;
}
/* =====================
   Hero sekcja
===================== */
.hero, .hero-bg, .hero-content, .hero-bg img {
  z-index: 1 !important;
}
/* =====================
   Menu mobilne (do 768px)
===================== */
@media (max-width: 768px) {
.logo img {
  max-height: 80px;
  height: auto;
  width: auto;
  margin: 0 auto;
}
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 80vh;
    background-color: #000;
    z-index: 9999;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .menu > li {
    position: relative;
    text-align: center;
    border-top: 1px solid #333;
  }

  .menu > li > a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    background: transparent !important;
    transition: color 0.3s ease;
    position: relative;
  }

  .menu > li > a:hover {
    color: var(--color-primary);
  }

  /* === STRZAŁKA OBOK === */
  .menu > li.menu-item-has-children > a::after {
    content: "▾";
    font-size: 14px;
    margin-left: 6px;
    transition: transform 0.3s ease;
  }

  .menu > li.open > a::after {
    transform: rotate(180deg);
  }

  /* === PODMENU – ZAMKNIĘTE DOMYŚLNIE === */
  .menu li ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    background-color: #111 !important;
    width: 100%;
  }

  /* === PODMENU OTWARTE === */
  .menu li.open ul {
    max-height: 1000px;
    opacity: 1;
  }

  .menu li ul li a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    color: #fff;
    background: #000;
    text-align: center;
    text-decoration: none;
    width: 100%;
    transition: color 0.3s ease, background-color 0.3s ease;
  }

  .menu li ul li a:hover {
    color: var(--color-primary);
  }

  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    font-size: 40px !important;
    color: var(--color-primary) !important;
    background: rgba(255, 255, 255, 0.1);
    border: none !important;
    border-radius: none;
    z-index: 10000;
    cursor: pointer;
  }
}

/* =====================
   Własne klasy
===================== */
.flex-box-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}
.flex-box-overlay::before {
  border-radius: 20px;
}
.flex-box-overlay * {
  border-radius: 20px;
}
/* =====================
   Reset stylów dziedziczonych
===================== */
.site-header, .site-header .container {
  overflow: visible;
}
/* =====================
   Zdjecie dynamiczne w HERO2
===================== */
.dynamic-hero {
  background-color: transparent !important;
  background-image: none !important;
}
/* =====================
   Stylizacja wpisy
===================== */
.section-title {
  text-align: center;
  font-size: 40px !important;
  font-weight: 400 !important;
  letter-spacing: -0.5px;
  color: #1f1f1f;
}

.entry-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}
.entry-content h2, .entry-content h3 {
  margin: 2em 0 1em;
  font-weight: bold;
  color: #222;
}
.entry-content ul {
  margin-left: 1.5em;
  list-style: disc;
}
.entry-content a {
  color: #0073aa;
  text-decoration: underline;
}
.entry-content a:hover {
  text-decoration: none;
  color: #004e87;
}
.entry-footer {
  background-color: #f7f7f7;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.95rem;
  border-top: 1px solid #ddd;
}
.entry-footer p {
  margin: 0;
}
.comments-area {
  max-width: 900px;
  margin: 60px auto 0;
  padding: 20px;
  background-color: #fafafa;
  border: 1px solid #e0e0e0;
}
/* =====================
   Stylizacja kategoria
===================== */
.category-posts-list {
  padding: 60px 20px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
	align-items: stretch;
}
.post-item {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
}
.post-item:hover {
  transform: translateY(-5px);
}
.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
}
.post-title {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
}
.post-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}
.post-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  text-align: left;
  padding: 0; 
}

.post-item:hover {
  transform: translateY(-5px);
}

.post-item .post-thumbnail img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.post-item .post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.post-item .post-meta {
  font-size: 13px;
  color: #999;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.post-item .post-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.post-item .post-title a {
  color: #111;
  text-decoration: none;
}

.post-item .post-title a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.post-item .post-excerpt {
  font-size: 14px;
  color: #444;
  line-height: 1.4;
  margin-bottom: 20px;
}

.post-item .read-more {
  margin-top: auto;
  display: inline-block;
  width: 33.33%;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  color: #fff !important;
  background: #020202;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.post-item .read-more:hover {
  background: #742424;
  color: #fff;
}

.card-realizacja {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
}

.card-realizacja:hover {
  transform: translateY(-5px);
}
.card-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.card-meta {
  font-size: 13px;
  color: #999;
  display: flex;
  justify-content: space-between;
}
.card-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.card-title a {
  color: #111;
  text-decoration: none;
}
.card-title a:hover {
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
}
.card-excerpt {
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}
.card-btn, .read-more {
  margin: 0 auto;
  display: inline-block;
  width: 33.33%;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  color: #fff !important;
  background: #020202;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.3s ease;
}
.card-btn:hover, .read-more:hover {
  background: #742424;
  color: #fff;
}
/* =====================
   Footer
===================== */
.site-footer {
  background-color: #000;
  color: #fff;
  padding: 60px 20px 30px;
  font-size: 15px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
}

.footer-sitemap .sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-sitemap .sitemap-list > li {
  margin-bottom: 10px;
}

.footer-sitemap .sitemap-list > li > a,
.footer-sitemap .sitemap-list > li > span {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.footer-sitemap .sitemap-list li ul {
  list-style: none;
  margin-top: 6px;
  padding-left: 12px;
}

.footer-sitemap .sitemap-list li ul li a {
  color: #ccc;
  text-decoration: none;
  font-weight: normal;
  display: block;
  margin-bottom: 4px;
}

.footer-sitemap a:hover {
  color: var(--color-primary);
}

.footer-contact p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.footer-contact a {
  color: #fff;
  text-decoration: underline;
}
.footer-contact a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}
/* Kontener paginacji */
.uc-posts-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

/* =====================
   Paginacja realizacje
===================== */
.uc-posts-pagination .page-numbers {
  background-color: transparent;
  color: #000;
  border: 1px solid #000;
  padding: 8px 16px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: all 0.3s ease;
}

.uc-posts-pagination .page-numbers:hover {
  background-color: #000;
  color: #fff;
}

.uc-posts-pagination .page-numbers.current {
  background-color: #000;
  color: #fff;
  font-weight: 600;
  cursor: default;
}
/* =====================
   Float menu
===================== 
@media (max-width: 768px) {
  .floating-menu  {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999 !important;
    position: fixed !important;
  }
}

*/
