/* ============================================================
   TCUW klon - polish.css
   Spójny, dopracowany wygląd na całej stronie:
   odsłonięcie treści (bez JS BeTheme), płynne przejścia,
   mniej pustej przestrzeni, jednolite karty i hovery.
   Ładowany jako ostatni -> ma pierwszeństwo.
   ============================================================ */

/* --- fonty z ikonami pod świeżymi adresami ---
   Zanim fonty trafiły do klona, WordPress odpowiadał na ich adresy przekierowaniem 301,
   które przeglądarki zapamiętują. Nowe adresy (z ?tcuw1) omijają tę pamięć. */
@font-face {
  font-family: 'mfn-icons'; font-style: normal; font-weight: 400; font-display: block;
  src: url('/wp-content/themes/tcuw/assets/wp-content/themes/betheme/fonts/mfn/icons.woff2?tcuw1') format('woff2'),
       url('/wp-content/themes/tcuw/assets/wp-content/themes/betheme/fonts/mfn/icons.woff?tcuw1') format('woff');
}
@font-face {
  font-family: 'Font Awesome 5 Free'; font-style: normal; font-weight: 900; font-display: block;
  src: url('/wp-content/themes/tcuw/assets/wp-content/themes/betheme/fonts/fontawesome/fa-solid-900.woff2?tcuw1') format('woff2'),
       url('/wp-content/themes/tcuw/assets/wp-content/themes/betheme/fonts/fontawesome/fa-solid-900.woff?tcuw1') format('woff');
}
@font-face {
  font-family: 'Font Awesome 5 Free'; font-style: normal; font-weight: 400; font-display: block;
  src: url('/wp-content/themes/tcuw/assets/wp-content/themes/betheme/fonts/fontawesome/fa-regular-400.woff2?tcuw1') format('woff2'),
       url('/wp-content/themes/tcuw/assets/wp-content/themes/betheme/fonts/fontawesome/fa-regular-400.woff?tcuw1') format('woff');
}
@font-face {
  font-family: 'Font Awesome 5 Brands'; font-style: normal; font-weight: 400; font-display: block;
  src: url('/wp-content/themes/tcuw/assets/wp-content/themes/betheme/fonts/fontawesome/fa-brands-400.woff2?tcuw1') format('woff2'),
       url('/wp-content/themes/tcuw/assets/wp-content/themes/betheme/fonts/fontawesome/fa-brands-400.woff?tcuw1') format('woff');
}

/* --- odsłonięcie treści ukrytej przez animacje BeTheme --- */
.animate, .mfn-transformed, .mcb-column.animate, .mcb-wrap.animate,
[data-anim], .mfn-animates-element {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
}
/* transform zerujemy tylko tam, gdzie służył chowaniu (nie psujemy hoverów) */
.mcb-column.animate, .mcb-wrap.animate, .mfn-transformed { transform: none !important; }
#Wrapper { opacity: 1 !important; }

/* --- płynne przejścia w elementach BeTheme --- */
.button, a.button, .button a, .feature_list li a, .menu a, .image_frame,
.image_frame img, .icon_box, .infobox, .column_attr a {
  transition: color .18s ease, background-color .18s ease,
              box-shadow .22s ease, transform .22s ease, opacity .18s ease;
}
/* pusty pager BeTheme na dole stron */
.section.section-page-footer { display: none !important; }

/* --- mniej pustej przestrzeni: spokojniejsze odstępy sekcji treści --- */
.mcb-section.mfn-default-section:not(.mcb-header-section) {
  padding-top: 46px !important;
  padding-bottom: 46px !important;
}
/* cap zbyt dużych niewidocznych odstępów */
.hr_invisible { max-height: 48px !important; }
.mcb-item-spacer-inner { max-height: 60px !important; }

/* ukryj pusty blog (po usunięciu fałszywych wpisów) -> bez martwej przestrzeni */
.blog_wrapper:empty { display: none !important; }
.column_blog:has(.blog_wrapper:empty) { display: none !important; }

/* --- kafelki usług / obrazy: spójny hover z delikatnym uniesieniem --- */
.image_frame { border-radius: 16px; overflow: hidden; }
.image_frame:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 18px 38px rgba(22, 33, 78, .20) !important;
}

/* --- listy (uchwały, linki): łagodny hover zamiast mocnego niebieskiego --- */
.feature_list li a { border-radius: 8px; }
.feature_list li a:hover {
  background: rgba(245, 155, 30, .10) !important;
  color: #16214e !important;
}
.feature_list li a:hover .icon i { color: #a85800 !important; }

/* --- menu: spójny pomarańczowy hover --- */
.menu > li > a:hover,
.menu > li.current-menu-item > a { color: #a85800 !important; }

/* --- przyciski: jednolity, lekko interaktywny styl --- */
a.button, .button a {
  border-radius: 8px !important;
  letter-spacing: .03em;
}
a.button:hover, .button a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(228,137,26,.28); }
a.button:active, .button a:active { transform: translateY(0); }

/* --- karty / kolumny z tłem: jednolite zaokrąglenie --- */
.mcb-wrap[class*="bg-"], .icon_box, .infobox, .column_attr.has-bg { border-radius: 14px; }

/* --- typografia: spokojny rytm --- */
.column_attr p { line-height: 1.7; }
.column_attr h1, .column_attr h2, .column_attr h3 { letter-spacing: .005em; }
