/*
Theme Name: WP MikroB
Theme URI: https://mikrob.pl/wp-bootstrap-starter/
Author: MikroB
Author URI: https://mikrob.pl
Description: Szablon stworzony na potrzeby firmy MikroB
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: wp-bootstrap-starter
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar, custom-background, e-commerce, theme-options, sticky-post, full-width-template
*/
/*--------------------------------------------------------------
>>> SPIS TREŚCI:
----------------------------------------------------------------
# Zmienne CSS (Design Tokens)
# Czcionki
# Normalize / Reset
# Typografia
# Elementy
# Formularze
# Nawigacja
  ## Linki
  ## Menu
# Dostępność
# Wyrównania
# Clearings
# Widgety
# Treść
  ## Posty i strony
  ## Komentarze
# Infinite Scroll
# Media
  ## Podpisy
  ## Galerie
# Carousel (nagłówek + strona główna)
# Sekcja usług (Services)
# Karty produktów
# Timeline
# Kompatybilność wtyczek
# Stopka
# Media Queries (responsive)
# Komponent Selector (kołowy)
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Zmienne CSS (Design Tokens)
--------------------------------------------------------------*/
:root {
  /* ── Paleta kolorów ── */
  --color-white: #fff;
  --color-black: #000;
  --color-gray-900: #212529;
  --color-gray-800: #333;
  --color-gray-700: #424141;
  --color-gray-600: #495057;
  --color-gray-500: #9a9a9a;
  --color-gray-400: #a1a1a1;
  --color-gray-300: #c0c0c0;
  --color-gray-200: #d4d9df;
  --color-gray-100: #eee;
  --color-gray-50: #f8f8f8;
  --color-gray-25: #f8f9fa;
  --color-primary: #52bcff;
  --color-primary-dark: #3071a9;
  --color-accent: #0d83fd;
  --color-accent-light: rgba(13, 131, 253, 0.1);
  --color-yellow: #fad139;
  --color-mark: #ff0;
  --color-purple: #563e7c;
  --color-timeline: #22c0e8;
  --color-selector: #428bca;
  --color-selector-hover: #3071a9;

  /* ── Tła ── */
  --bg-body: var(--color-white);
  --bg-surface: var(--color-gray-50);
  --bg-footer: var(--color-gray-800);
  --bg-overlay: rgba(0, 0, 0, 0.35);          /* lekkie przyciemnienie slajdów carousel */
  --bg-overlay-dark: rgba(0, 0, 0, 0.6);

  /* ── Tekst ── */
  --text-primary: #444;
  --text-muted: var(--color-gray-400);
  --text-body: var(--color-gray-900);
  --text-light: var(--color-gray-700);

  /* ── Typografia ── */
  --font-family-base: 'Open Sans', sans-serif;
  --font-family-heading: 'Open Sans', sans-serif;
  --font-family-selector: sans-serif;

  --font-size-h1: 60px;
  --font-size-h2: 45px;
  --font-size-h3: 30px;
  --font-size-h4: 20px;
  --font-size-h5: 10px;
  --font-size-small: 0.875rem;
  --font-size-caption: 0.688rem;

  /* ── Spacing ── */
  --spacing-xs: 0.313rem;
  --spacing-sm: 0.625rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;

  /* ── Obramowania i zaokrąglenia ── */
  --border-color: var(--color-gray-100);
  --border-radius-sm: 3px;
  --border-radius-md: 8px;
  --border-radius-lg: 10px;
  --border-radius-pill: 0.938rem;
  --border-radius-circle: 50%;

  /* ── Cienie ── */
  --shadow-sm: 0 3px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 0 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0px 0px 20px -8px rgba(0, 0, 0, 0.75);
  --shadow-text: 0px 0px 5px rgba(0, 0, 0, 0.75);
  --shadow-text-strong: 2px 2px 6px rgba(0, 0, 0, 0.8);

  /* ── Przejścia ── */
  --transition-fast: all 0.1s ease;
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.8s ease-in-out;

  /* ── Carousel ── */
  --carousel-height: 500px;
  --carousel-caption-font-h3: 65px;
  --carousel-caption-font-p: 35px;

  /* ── Stare zmienne (kompatybilność wsteczna) ── */
  --white-color: var(--color-white);
  --black-color: var(--color-black);
  --middle-black-color: var(--color-gray-800);
  --light-black-color: var(--color-gray-700);
  --main-color: var(--color-primary);
  --text-light-black-color: var(--color-gray-400);
  --middle-white-color: var(--color-gray-50);
  --yellow-color: var(--color-yellow);
  --surface-color: var(--color-gray-50);
}

/*--------------------------------------------------------------
# Czcionki — ładowane z Google Fonts przez wp_enqueue_style (functions.php)
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Normalize / Reset
--------------------------------------------------------------*/
body {
  margin: 0;
  -webkit-font-smoothing: auto;
  font-family: var(--font-family-base);
  font-weight: 300;
  overflow-x: hidden;
  background: var(--bg-body);
}

/* Nagłówek — menu główne z delikatnym zaokrągleniem */
#masthead {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--border-radius-md);
}
#top > .container {
  border-radius: var(--border-radius-md);
}

/* Ograniczenie szerokości treści na szerokich ekranach —
   tła rozlewają się na pełną szerokość, tekst nie */
#content .container-fluid {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Carousel — nie ograniczaj do 1400px */
#content .container-fluid.no_padding {
  max-width: 1600px;
  padding-left: 0;
  padding-right: 0;
}

/* Sekcje z tłem — pełna szerokość tła */
#content .container-fluid[class*="background-"] {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
#content .container-fluid[class*="background-"] > .container,
#content .container-fluid[class*="background-"] > .row {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

article, aside, details, figcaption, figure,
footer, header, main, menu, nav, section, summary {
  display: block;
}

audio, canvas, progress, video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden], template {
  display: none;
}

a { background-color: transparent; }
a:active, a:hover { outline: 0; }
dfn { font-style: italic; }

mark {
  background: var(--color-mark);
  color: var(--color-black);
}

small { font-size: 80%; }

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup { top: -0.5em; }
sub { bottom: -0.25em; }

img { border: 0; }
svg:not(:root) { overflow: hidden; }
figure { margin: 1em var(--spacing-xl); }
hr { box-sizing: content-box; height: 0; }

button { overflow: visible; }
button, select { text-transform: none; }

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled], html input[disabled] { cursor: default; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
input { line-height: normal; }
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { height: auto; }
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }

fieldset {
  border: 1px solid var(--color-gray-300);
  margin: 0 2px;
  padding: 0.35em var(--spacing-sm) 0.75em;
}

legend { border: 0; padding: 0; }
textarea { overflow: auto; }
table { border-collapse: collapse; border-spacing: 0; }
td, th { padding: 0; }

/*--------------------------------------------------------------
# Typografia
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 15px;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); }

p {
  margin-bottom: var(--spacing-lg);
  font-family: var(--font-family-base);
}

h1.entry-title {
  font-size: 4.1rem;
  text-align: center;
  font-family: var(--font-family-heading);
}

h2.entry-title {
  font-size: 2.8rem;
  border-left: 5px solid var(--color-primary);
  padding-left: 10px;
  font-family: var(--font-family-heading);
}

h3.widget-title {
  font-size: 1.7rem;
  border-left: 5px solid var(--color-primary);
  padding-left: 10px;
  font-family: var(--font-family-heading);
}

.btn-link:hover,
.btn-link.focus,
.btn-link:focus {
  text-decoration: none;
}

.entry-meta, .entry-footer, .navigation {
  display: none;
}

/*--------------------------------------------------------------
# Elementy
--------------------------------------------------------------*/
img {
  height: auto;
  max-width: 100%;
}

table {
  margin: 0 0 var(--spacing-lg);
  width: 100%;
}

/*--------------------------------------------------------------
# Przyciski
--------------------------------------------------------------*/
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-lg {
  border-radius: 0;
}

/*--------------------------------------------------------------
# Klasy tła
--------------------------------------------------------------*/
.background-middle-white-color { background-color: var(--bg-surface); }
.background-light-black-color { background-color: var(--color-gray-700); }
.background-yellow { background-color: var(--color-yellow); }

.background-img-contact {
  background: url(https://www.mikrob.pl/wp-content/uploads/2022/04/kontakt.webp) no-repeat left center;
  border-top: 1px solid var(--bg-surface);
  background-size: 800px;
}

.background-img-engineer {
  background: url(https://www.mikrob.pl/wp-content/uploads/2022/04/inzyniering.webp) no-repeat left center;
  border-top: 1px solid var(--bg-surface);
  background-size: cover;
}

.background-img-35-lat {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background: url(https://strona.mikrob.pl/wp-content/uploads/2022/11/elektrownia.jpg) no-repeat left center;
}

.box-shadow {
  box-shadow: var(--shadow-lg);
}

.mt-6 {
  margin-top: 10rem !important;
}

/*--------------------------------------------------------------
# Klasy koloru tekstu
--------------------------------------------------------------*/
.text-light-black-color,
.text-light-black-color a {
  color: var(--text-muted);
}

.text-white-color,
.text-white-color a {
  color: var(--color-white);
}

/*--------------------------------------------------------------
# Menu / Nawigacja
--------------------------------------------------------------*/
.dropdown-menu {
  border-radius: var(--border-radius-md);
  min-width: 13rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  margin-top: 0.25rem;
}

.navbar-light .navbar-toggler {
  border-color: var(--color-white);
}

#masthead nav {
  padding-left: 0;
  padding-right: 0;
}

header#masthead {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--border-color);
  padding: 0.74rem var(--spacing-md);
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  top: 50px;
  width: 75%;
  z-index: 99;
}

.navbar-brand {
  height: auto;
}

.navbar-brand > a {
  font-size: 1.1rem;
  outline: medium none;
  text-decoration: none;
  color: var(--text-primary);
}

.navbar-brand > a:visited,
.navbar-brand > a:hover {
  text-decoration: none;
}

/* Style elementów menu */
body:not(.theme-preset-active) #masthead .navbar-nav > li > a {
  color: var(--text-body);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.2px;
}

body:not(.theme-preset-active) #masthead .navbar-nav > li > a:hover,
body:not(.theme-preset-active) #masthead .navbar-nav > li.current_page_item > a {
  color: var(--color-gray-700);
  border-bottom: 2px solid var(--color-primary);
}

.navbar-toggle .icon-bar {
  background: var(--color-black) none repeat scroll 0 0;
}

/* Submenu dropdown */
/* Strzałka dropdown — lżejsza */
.dropdown-toggle::after {
  border-top: 0.28em solid;
  border-right: 0.28em solid transparent;
  border-left: 0.28em solid transparent;
  opacity: 0.45;
  vertical-align: 0.15em;
  margin-left: 0.35em;
}
.dropdown-menu .dropdown-toggle::after {
  border-bottom: 0.28em solid transparent;
  border-left: 0.28em solid;
  border-top: 0.28em solid transparent;
  opacity: 0.45;
}

.dropdown.menu-item-has-children .dropdown.menu-item-has-children {
  position: relative;
}

.dropdown.menu-item-has-children .dropdown.menu-item-has-children > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) var(--border-radius-md);
}

.dropdown.menu-item-has-children .dropdown.menu-item-has-children:hover > .dropdown-menu {
  display: block;
}

.dropdown.menu-item-has-children .dropdown.menu-item-has-children > a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #ccc;
  margin-top: 5px;
  margin-right: -10px;
}

.dropdown.menu-item-has-children .dropdown.menu-item-has-children:hover > a:after {
  border-left-color: var(--color-white);
}

.dropdown.menu-item-has-children .dropdown.menu-item-has-children.pull-left {
  float: none;
}

.dropdown.menu-item-has-children .dropdown.menu-item-has-children.pull-left > .dropdown-menu {
  left: -100%;
  margin-left: 10px;
  border-radius: var(--border-radius-md) 0 var(--border-radius-md) var(--border-radius-md);
}

/* Małe menu */
.menu-toggle,
.main-navigation.toggled ul {
  display: block;
}

.dropdown-item {
  line-height: 1.2;
  padding-bottom: var(--spacing-xs);
  padding-top: var(--spacing-xs);
}

.dropdown .open .dropdown-menu {
  display: block;
  left: 12.25em;
  top: 0;
}

.dropdown-menu .dropdown-item {
  white-space: normal;
  background: transparent;
  line-height: 1.5;
  font-size: 0.85rem;
  padding: 0.4rem 1.25rem;
  color: var(--text-body);
}

.dropdown-menu .dropdown-item:hover {
  background: #f0f4ff;
  color: var(--color-primary, #0d6efd);
}

/* Nawigacja postów/komentarzy */
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin: 0 0 var(--spacing-lg);
  overflow: hidden;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  float: left;
  width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  float: right;
  text-align: right;
  width: 50%;
}

.comment-content.card-block {
  padding: 20px;
}

.navigation.post-navigation {
  padding-top: 1.875rem;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  border: 1px solid #ddd;
  border-radius: var(--border-radius-pill);
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  text-decoration: none;
}

.post-navigation .nav-next a::after { content: " \2192"; }
.post-navigation .nav-previous a::before { content: "\2190 "; }

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
  background: var(--border-color) none repeat scroll 0 0;
}

/* Nagłówek podstrony */
#page-sub-header {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 0;
  text-align: center;
  font-size: 1.25rem;
  background-size: cover !important;
}

body:not(.theme-preset-active) #page-sub-header h1 {
  line-height: 1.6;
  font-size: 4rem;
  color: var(--color-purple);
  margin: 0 0 var(--spacing-md);
  border: 0;
  padding: 0;
}

#page-sub-header p {
  margin-bottom: 0;
  line-height: 1.4;
  font-size: 1.25rem;
}

body:not(.theme-preset-active) #page-sub-header p {
  color: var(--text-body);
}

a.page-scroller {
  color: var(--color-gray-800);
  font-size: 2.6rem;
  display: inline-block;
  margin-top: 2rem;
}

/*--------------------------------------------------------------
# Dostępność
--------------------------------------------------------------*/
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: var(--font-size-small);
  height: auto;
  left: var(--spacing-xs);
  line-height: normal;
  padding: 0.938rem 1.438rem 0.875rem;
  text-decoration: none;
  top: var(--spacing-xs);
  width: auto;
  z-index: 100000;
}

#content[tabindex="-1"]:focus { outline: 0; }

/*--------------------------------------------------------------
# Wyrównania
--------------------------------------------------------------*/
.alignleft { display: inline; float: left; margin-right: var(--spacing-lg); }
.alignright { display: inline; float: right; margin-left: var(--spacing-lg); }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }

a img.alignright { float: right; margin: var(--spacing-xs) 0 1.25rem 1.25rem; }
a img.alignnone { margin: var(--spacing-xs) 1.25rem 1.25rem 0; }
a img.alignleft { float: left; margin: var(--spacing-xs) 1.25rem 1.25rem 0; }
a img.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-caption.alignnone { margin: var(--spacing-xs) 1.25rem 1.25rem 0; }
.wp-caption.alignleft { margin: var(--spacing-xs) 1.25rem 1.25rem 0; }
.wp-caption.alignright { margin: var(--spacing-xs) 0 1.25rem 1.25rem; }

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before, .clear:after,
.entry-content:before, .entry-content:after,
.comment-content:before, .comment-content:after,
.site-header:before, .site-header:after,
.site-content:before, .site-content:after,
.site-footer:before, .site-footer:after {
  content: "";
  display: table;
  table-layout: fixed;
}

.clear:after, .entry-content:after,
.comment-content:after, .site-header:after,
.site-content:after, .site-footer:after {
  clear: both;
}

/*--------------------------------------------------------------
# Widgety
--------------------------------------------------------------*/
.widget {
  margin: 0 0 var(--spacing-lg);
  font-size: var(--font-size-small);
}
.widget select { max-width: 100%; }

.widget_search .search-form input[type="submit"] { display: none; }

.nav > li > a:focus,
.nav > li > a:hover {
  background-color: var(--border-color);
  text-decoration: none;
}

.half-rule { width: 6rem; margin: var(--spacing-xl) 0; }

.widget_categories .nav-link { display: inline-block; }

/*--------------------------------------------------------------
# Treść — Posty i strony
--------------------------------------------------------------*/
.no_padding {
  padding: 0;
}

.sticky .entry-title::before {
  content: '\f08d';
  font-size: 1.563rem;
  left: -2.5rem;
  position: absolute;
  top: 0.375rem;
}

.sticky .entry-title { position: relative; }

.single .byline,
.group-blog .byline { display: inline; }

.page-content, .entry-content, .entry-summary {
  margin: var(--spacing-lg) 0 0;
}

.page-links { clear: both; margin: 0 0 var(--spacing-lg); }

.page-template-blank-page .entry-content,
.blank-page-with-container .entry-content { margin-top: 0; }

.post.hentry { margin-bottom: 4rem; }

.posted-on, .byline, .comments-link { color: var(--color-gray-500); }

.entry-title > a { color: inherit; }

/*--------------------------------------------------------------
# Treść — Komentarze
--------------------------------------------------------------*/
.comment-content a { word-wrap: break-word; }
.bypostauthor { display: block; }
.comment-body .pull-left { padding-right: var(--spacing-sm); }
.comment-list .comment { display: block; }
.comment-list { padding-left: 0; }
.comments-title { font-size: 1.125rem; }

.comment-list .pingback {
  border-top: 1px solid rgba(0, 0, 0, 0.125);
  padding: 0.563rem 0;
}
.comment-list .pingback:first-child { border: medium none; }

/*--------------------------------------------------------------
# Infinite Scroll
--------------------------------------------------------------*/
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  display: none;
}

.infinity-end.neverending .site-footer { display: block; }

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

embed, iframe, object { max-width: 100%; }

/* Podpisy */
.wp-caption {
  background: #f1f1f1 none repeat scroll 0 0;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  padding: var(--spacing-xs) var(--spacing-xs) 0;
  text-align: center;
}

.wp-caption img[class*="wp-image-"] {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 100%;
  padding: 0;
  width: auto;
}

.wp-caption .wp-caption-text {
  font-size: var(--font-size-caption);
  line-height: 1.063rem;
  margin: 0;
  padding: var(--spacing-sm);
}

.wp-caption-text { text-align: center; }

/* Galerie */
.gallery { margin-bottom: var(--spacing-lg); }

.gallery-item {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  width: 100%;
}

.gallery-item .gallery-columns-2 { max-width: 50%; }
.gallery-item .gallery-columns-3 { max-width: 33.33333%; }
.gallery-item .gallery-columns-4 { max-width: 25%; }
.gallery-item .gallery-columns-5 { max-width: 20%; }
.gallery-item .gallery-columns-6 { max-width: 16.66667%; }
.gallery-item .gallery-columns-7 { max-width: 14.28571%; }
.gallery-item .gallery-columns-8 { max-width: 12.5%; }
.gallery-item .gallery-columns-9 { max-width: 11.11111%; }

.gallery-caption { display: block; }

/*--------------------------------------------------------------
# Sekcja O nas (About)
--------------------------------------------------------------*/
/* Pasek akcentowy pod nagłówkiem */
.accent-bar {
  width: 60px;
  height: 4px;
  background: var(--color-primary, #0d6efd);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* Badge "Od 1988 roku" */
.about-badge {
  display: inline-block;
  background: var(--color-primary, #0d6efd);
  color: var(--color-white);
  font-size: var(--font-size-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 1rem;
  border-radius: var(--border-radius-pill);
  margin-bottom: 1.25rem;
}

/* Tekst sekcji */
.about-text {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1rem;
}

/* Przycisk z ikoną */
.about-btn {
  border-radius: var(--border-radius-pill);
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: var(--transition-base);
}
.about-btn:hover {
  transform: translateX(5px);
}

/* Obrazek z dekoracyjnym elementem */
.about-image-wrapper {
  position: relative;
  padding: 1rem;
}
.about-image-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 60%;
  border: 3px solid var(--color-primary, #0d6efd);
  border-radius: var(--border-radius-lg);
  opacity: 0.2;
  z-index: 0;
}
.about-image {
  position: relative;
  z-index: 1;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
}
.about-image:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/*--------------------------------------------------------------
# Sekcja Usługi (Services)
--------------------------------------------------------------*/
.service-card-modern {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--color-primary, #0d6efd);
  transition: var(--transition-base);
  border-radius: 0 0 2px 2px;
}
.service-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.service-card-modern:hover::before {
  width: 60%;
}

/* Ikona usługi */
.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light-gray, #f8f9fa);
  border-radius: var(--border-radius-circle);
  transition: var(--transition-base);
}
.service-card-modern:hover .service-icon {
  background: var(--color-primary, #0d6efd);
}
.service-card-modern:hover .service-icon img {
  filter: brightness(0) invert(1);
}
.service-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: var(--transition-base);
}

/* Nagłówek karty */
.service-card-modern h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-body);
}

/* Tekst karty */
.service-card-modern p {
  color: var(--text-light);
  font-size: var(--font-size-small);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Link "Czytaj więcej" */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-primary, #0d6efd);
  font-weight: 600;
  font-size: var(--font-size-small);
  text-decoration: none;
  transition: var(--transition-base);
  margin-top: auto;
}
.service-link:hover {
  gap: 0.75rem;
  color: var(--color-primary-dark, #0b5ed7);
}

/*--------------------------------------------------------------
# Sekcja Album (Co oferujemy)
--------------------------------------------------------------*/
.album-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.album-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Obrazek z overlay */
.album-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.album-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.album-card:hover .album-card-img img {
  transform: scale(1.08);
}
.album-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}
.album-card:hover .album-card-overlay {
  opacity: 1;
}

/* Treść karty */
.album-card-body {
  padding: 1.5rem;
  flex: 1;
}
.album-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-body);
}
.album-card-body p {
  color: var(--text-light);
  font-size: var(--font-size-small);
  line-height: 1.7;
  margin: 0;
}

/*--------------------------------------------------------------
# Sekcja Usługi — Carousel horyzontalny
--------------------------------------------------------------*/
.services-carousel-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}
.services-carousel {
  overflow: hidden;
  padding: 1.5rem 1.5rem;
}
.services-track {
  display: flex;
  width: 200%;
  transition: transform 0.5s ease;
}
.service-slide {
  flex: 0 0 calc(100% / 6);
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Przyciski prev/next */
.services-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-circle);
  border: 1px solid var(--border-color);
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition-base);
  font-size: 1.1rem;
  color: var(--text-body);
}
.services-nav:hover {
  background: var(--color-primary, #0d6efd);
  color: var(--color-white);
  border-color: var(--color-primary, #0d6efd);
}
.services-prev { left: -20px; }
.services-next { right: -20px; }

/* Pro-track (7 elementów) */
.pro-track {
  width: calc(100% * 7 / 3);
}
.pro-track .service-slide {
  flex: 0 0 calc(100% / 7);
}

/* Mobile — 1 karta */
@media (max-width: 768px) {
  .services-track { width: 600%; }
  .service-slide { flex: 0 0 calc(100% / 6); }
  
  .pro-track { width: 700%; }
  .pro-track .service-slide { flex: 0 0 calc(100% / 7); }
  
  .services-prev { left: 5px; }
  .services-next { right: 5px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .services-track { width: 300%; }
  .service-slide { flex: 0 0 calc(100% / 6); }
  
  .pro-track { width: calc(100% * 7 / 2); }
  .pro-track .service-slide { flex: 0 0 calc(100% / 7); }
}

/*--------------------------------------------------------------
# Sekcja Automatyka (Grid 3x3 Layout)
--------------------------------------------------------------*/
#automation {
  background: linear-gradient(180deg, #f0f4f8, #e8edf2);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.auto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Kafelki */
.auto-tile {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
  position: relative;
}
.auto-tile:hover {
  border-color: var(--color-primary, #0d6efd);
}
.auto-tile:hover .auto-tile-icon {
  background: var(--color-primary, #0d6efd);
}
.auto-tile:hover .auto-tile-icon img {
  filter: brightness(0) invert(1);
}

.auto-tile-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4ff;
  border-radius: var(--border-radius-circle);
  transition: var(--transition-base);
}
.auto-tile-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: var(--transition-base);
}
.auto-tile h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text-body);
}
.auto-tile p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

/* Centrum — prostokątny kafelek w kolorze niebieskim strony */
.auto-tile.auto-tile-center {
  background: var(--color-primary, #52bcff);
  border-color: var(--color-primary, #52bcff);
  color: var(--color-white);
  box-shadow: 0 8px 30px rgba(82, 188, 255, 0.35);
}
.auto-tile.auto-tile-center .auto-tile-icon {
  background: rgba(255, 255, 255, 0.2);
}
.auto-tile.auto-tile-center .auto-tile-icon img {
  filter: brightness(0) invert(1);
}
.auto-tile.auto-tile-center h4 {
  color: var(--color-white);
}
.auto-tile.auto-tile-center p {
  color: rgba(255, 255, 255, 0.85);
}
.auto-tile.auto-tile-center:hover {
  border-color: var(--color-primary-dark, #3071a9);
  background: var(--color-primary-dark, #3071a9);
}

/* Linie laczace kafelki z centrum */
.auto-tile-connect-br::after, .auto-tile-connect-b::after, .auto-tile-connect-bl::after,
.auto-tile-connect-r::after, .auto-tile-connect-l::after,
.auto-tile-connect-tr::after, .auto-tile-connect-t::after, .auto-tile-connect-tl::after {
  content: '';
  position: absolute;
  background: var(--color-gray-200);
  z-index: -1;
}
.auto-tile-connect-b::after  { width: 2px; height: 1.5rem; bottom: -1.5rem; left: 50%; }
.auto-tile-connect-br::after { width: 2px; height: 1.5rem; bottom: -1.5rem; right: 25%; }
.auto-tile-connect-bl::after { width: 2px; height: 1.5rem; bottom: -1.5rem; left: 25%; }
.auto-tile-connect-r::after  { width: 1.5rem; height: 2px; top: 50%; right: -1.5rem; }
.auto-tile-connect-l::after  { width: 1.5rem; height: 2px; top: 50%; left: -1.5rem; }
.auto-tile-connect-t::after  { width: 2px; height: 1.5rem; top: -1.5rem; left: 50%; }
.auto-tile-connect-tr::after { width: 2px; height: 1.5rem; top: -1.5rem; right: 25%; }
.auto-tile-connect-tl::after { width: 2px; height: 1.5rem; top: -1.5rem; left: 25%; }

/* Mobile */
@media (max-width: 768px) {
  .auto-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 100%;
  }
  .auto-tile.auto-tile-center {
    grid-column: 1 / -1;
    order: -1;
  }
  .auto-tile::after {
    display: none !important;
  }
}

/*--------------------------------------------------------------
# Carousel (nagłówek + strona główna)
--------------------------------------------------------------*/
/* Carousel — ciut szerszy od menu, zaokrąglone dół */
.no_padding {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}
#carouselControls {
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  overflow: hidden;
}
.carousel { top: 0; left: 0; }

.item {
  min-width: 100%;
  height: var(--carousel-height);
  max-height: var(--carousel-height);
  width: auto;
}

.item1 {
  background: url(https://www.mikrob.pl/wp-content/uploads/2022/04/inzyniering.webp) no-repeat center center;
  background-size: cover;
}

.item2 {
  background: url(https://www.mikrob.pl/wp-content/uploads/2022/04/micros.webp) no-repeat center center;
  background-size: cover;
}

.item3 {
  background: url(https://www.mikrob.pl/wp-content/uploads/2022/04/itegracja.webp) no-repeat center center;
  background-size: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 30%;
  right: 0%;
  left: 13%;
  z-index: 2;
  padding-top: 20px;
  padding-bottom: 20px;
  color: var(--color-white);
  text-shadow: var(--shadow-text-strong);
  text-align: start;
}

.carousel-caption > h3 {
  color: var(--color-white);
  font-size: var(--carousel-caption-font-h3);
}

.carousel-caption > p {
  color: var(--color-white);
  font-size: var(--carousel-caption-font-p);
}

.carousel-indicators {
  right: 0%;
  left: 13%;
  margin-left: 0%;
  justify-content: flex-start;
}

/* Nakładka przyciemniająca slajdy */
.carousel-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-overlay);
  z-index: 1;
}

/* Przyciski nawigacji carousel — nad nakładką i caption */
.carousel-control-prev,
.carousel-control-next {
  z-index: 3;
}

/*--------------------------------------------------------------
# Karty nagłówekowe i nawigacja tabów
--------------------------------------------------------------*/
.card {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px;
  background-color: transparent;
  border-radius: 0;
}

.card-header {
  padding: 0;
  background-color: transparent;
  text-align: start;
}

.card-header:first-child { border-radius: 0; }
.card-header-no-border { border-bottom: 0; }

.card-title-new {
  margin-bottom: 0.75rem;
  font-weight: bold;
  color: var(--color-white);
  text-shadow: 0px 0px 4px rgb(0 0 0);
}

/* Taby nawigacyjne */
.nav-tabs .nav-link {
  border: 0 solid transparent;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: var(--color-gray-600);
  background-color: transparent;
  border-color: var(--color-primary) var(--color-primary) var(--color-primary);
}

.nav-link.active {
  color: var(--color-gray-600);
  font-weight: bold;
  background-color: transparent;
  border-bottom: 2px solid var(--color-primary);
}

/*--------------------------------------------------------------
# Sekcja usług (Services)
--------------------------------------------------------------*/
.services .service-card {
  height: 100%;
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-base);
}

.services .service-card:hover {
  box-shadow: var(--shadow-md);
}

.services .service-card:hover .icon {
  background: var(--color-accent-light);
  color: var(--color-white);
}

.services .service-card .icon {
  width: 80px;
  height: 80px;
  margin-right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-md);
  color: var(--color-accent);
  font-size: 28px;
  transition: var(--transition-base);
  line-height: 1;
}

.services .service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.services .service-card p {
  margin-bottom: 25px;
  color: rgba(33, 37, 41, 0.75);
  font-size: 15px;
  line-height: 1.6;
}

.services .service-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 500;
  transition: var(--transition-base);
}

.services .service-card .read-more i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.services .service-card .read-more:hover i {
  transform: translateX(5px);
}

/*--------------------------------------------------------------
# Karty produktów (kafelki z tłem)
--------------------------------------------------------------*/
.product-card {
  background-size: cover;
  background-position: center;
  position: relative;
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
  min-height: 320px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.product-card-overlay {
  background: rgba(0, 0, 0, 0.55);
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: var(--transition-base);
}
.product-card:hover .product-card-overlay {
  background: rgba(0, 0, 0, 0.4);
}

/* Treść karty */
.product-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  width: 100%;
  flex: 1;
  color: #ffffff;
}
.product-card-body h3 {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 0.75rem;
  color: #ffffff;
}
.product-card-body p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0 0 1.5rem;
  line-height: 1.5;
  color: #ffffff;
}

/* Przycisk produktu — pill outline */
.product-btn {
  border-radius: var(--border-radius-pill);
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-base);
}
.product-btn:hover {
  background: var(--color-white);
  color: var(--text-body);
  border-color: var(--color-white);
}

/*--------------------------------------------------------------
# Sekcja Experience (banner)
--------------------------------------------------------------*/
.experience-banner {
  position: relative;
  background: url('https://www.mikrob.pl/wp-content/uploads/2022/04/micros.webp') center center / cover no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.experience-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.experience-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 3rem 2rem;
}
.experience-content h1 {
  font-size: 2.5rem;
  color: #ffffff;
  margin: 0 0 1.25rem;
  letter-spacing: 1px;
}
.experience-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

/*--------------------------------------------------------------
# Karta informacyjna (about.php)
--------------------------------------------------------------*/
.about-info-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  height: 100%;
}
.about-info-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.about-text {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.8;
}
.about-text p {
  margin-bottom: 0.75rem;
}

/*--------------------------------------------------------------
# Accordion regulacji prawnych
--------------------------------------------------------------*/
.regulations-item {
  background: var(--color-white);
  border-radius: var(--border-radius-lg) !important;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.regulations-accordion .accordion-button {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-body);
  background: transparent;
  padding: 1.25rem 1.5rem;
}
.regulations-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--color-primary, #0d6efd);
  box-shadow: none;
}
.regulations-accordion .accordion-button:focus {
  box-shadow: none;
}
.regulations-accordion .accordion-body {
  padding: 0 1.5rem 1.5rem;
}

/*--------------------------------------------------------------
# Sekcja Kontakt (2 kolumny)
--------------------------------------------------------------*/
/* Obrazek po lewej z blur-fade na prawej krawędzi */
.contact-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 400px;
}
.contact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 70%, transparent 100%);
}

/* Karta kontaktu po prawej */
.contact-card-side {
  padding: 2rem 2.5rem;
  max-width: 380px;
  margin-left: auto;
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.contact-card-side h2 {
  font-size: 1.8rem;
  margin: 0 0 0.25rem;
}

/* Bloki adresowe */
.contact-info {
  text-align: left;
}
.contact-block {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}
.contact-block:last-child {
  border-bottom: none;
}
.contact-block h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary, #0d6efd);
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-block p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}
.contact-block a {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-base);
}
.contact-block a:hover {
  color: var(--color-primary, #0d6efd);
}

/*--------------------------------------------------------------
# Timeline
--------------------------------------------------------------*/
ul.timeline {
  list-style-type: none;
  position: relative;
}

ul.timeline:before {
  content: ' ';
  background: var(--color-gray-200);
  display: inline-block;
  position: absolute;
  left: 29px;
  width: 2px;
  height: 100%;
  z-index: 400;
}

ul.timeline > li {
  margin: 20px 0;
  padding-left: 20px;
}

ul.timeline > li:before {
  content: ' ';
  background: white;
  display: inline-block;
  position: absolute;
  border-radius: var(--border-radius-circle);
  border: 3px solid var(--color-timeline);
  left: 20px;
  width: 20px;
  height: 20px;
  z-index: 400;
}

/*--------------------------------------------------------------
# Partner Carousel (loga klientów)
--------------------------------------------------------------*/
.brands {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  display: table-cell;
  vertical-align: middle;
}

.brands_slider_container {
  border: 0;
  padding-left: 97px;
  padding-right: 97px;
}

.brands_slider {
  height: 100%;
  margin-top: 50px;
  display: table-cell;
  vertical-align: middle;
}

.brands_item { height: 100%; }
.brands_item img { max-width: 100%; }

.brands_nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px;
  cursor: pointer;
}

.brands_nav i {
  color: #e5e5e5;
  transition: var(--transition-base);
}

.brands_nav:hover i { color: #676767; }
.brands_prev { left: 40px; }
.brands_next { right: 40px; }

/*--------------------------------------------------------------
# Zdjęcia pozycyjne (about section)
--------------------------------------------------------------*/
.small-image {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 45%;
  border: 8px solid var(--bg-surface);
}

/*--------------------------------------------------------------
# Kompatybilność wtyczek — WooCommerce
--------------------------------------------------------------*/
.woocommerce-cart-form .shop_table .coupon .input-text {
  width: 8.313rem !important;
}

.variations_form .variations .value > select {
  margin-bottom: var(--spacing-sm);
}

.woocommerce-MyAccount-content .col-1,
.woocommerce-MyAccount-content .col-2 {
  max-width: 100%;
}

/*--------------------------------------------------------------
# Kompatybilność wtyczek — Elementor
--------------------------------------------------------------*/
.elementor-page article .entry-footer { display: none; }

.elementor-page.page-template-fullwidth #content.site-content {
  padding-bottom: 0;
  padding-top: 0;
}

.elementor-page .entry-content { margin-top: 0; }

/*--------------------------------------------------------------
# Kompatybilność wtyczek — Visual Composer
--------------------------------------------------------------*/
.vc_desktop article .entry-footer { display: none; }

.vc_desktop #content.site-content {
  padding-bottom: 0;
  padding-top: 0;
}

.vc_desktop .entry-content { margin-top: 0; }

/*--------------------------------------------------------------
# Stopka
--------------------------------------------------------------*/
footer#colophon {
  font-size: 85%;
}

body:not(.theme-preset-active) footer#colophon {
  color: var(--text-muted);
  background-color: var(--bg-footer);
}

.navbar-dark .site-info { color: var(--color-white); }

.copyright {
  font-size: var(--font-size-small);
  margin-bottom: 0;
  text-align: center;
}

.copyright a, footer#colophon a { color: inherit; }

/* Stopka górna */
.footer-top {
  font-size: 0.88rem;
}
.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: inherit;
}

/* Accordion w stopce — przezroczyste, dopasowane do kolorystyki */
.footer-accordion .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-accordion .accordion-button {
  background: transparent;
  color: inherit;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: none;
}
.footer-accordion .accordion-button::after {
  filter: invert(1);
  width: 0.85rem;
  height: 0.85rem;
}
.footer-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: inherit;
}
.footer-accordion .accordion-body {
  padding: 0.25rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.footer-accordion .accordion-collapse {
  background: transparent;
}

/* Linki w stopce */
.footer-link, .footer-link-single {
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.2rem 0;
  display: block;
  transition: var(--transition-base);
}
.footer-link:hover, .footer-link-single:hover {
  opacity: 1;
  color: var(--color-primary, #0d6efd);
}
.footer-link-single {
  padding: 0.5rem 0;
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-top a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}
.footer-top a:hover {
  color: var(--color-primary, #0d6efd);
}

/*--------------------------------------------------------------
# Sekcja Top — filary (Projektowanie, Oprogramowanie, Integracja)
--------------------------------------------------------------*/
/* Kontener filarów — nachodzi na carousel */
.top-pillars {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: -60px auto 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
  border-radius: var(--border-radius-lg);
}

/* Pojedynczy filar */
.top-pillar {
  flex: 1;
  text-align: center;
  padding: 1.25rem 1.5rem;
  background: #f8f9fb;
  text-decoration: none;
  color: var(--text-body);
  transition: var(--transition-base);
  position: relative;
  border: 1px solid var(--border-color);
}
.top-pillar:first-child {
  border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}
.top-pillar:last-child {
  border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
}
.top-pillar + .top-pillar {
  border-left: none;
}
.top-pillar:hover {
  background: #f0f6ff;
  color: var(--text-body);
}
.top-pillar:hover .top-pillar-icon {
  background: var(--color-primary, #0d6efd);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}
.top-pillar:hover .top-pillar-icon img {
  filter: brightness(0) invert(1);
}

/* Ikona filara */
.top-pillar-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4ff;
  border-radius: var(--border-radius-circle);
  transition: var(--transition-base);
}
.top-pillar-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: var(--transition-base);
}

.top-pillar h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.35rem;
}
.top-pillar p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

/*--------------------------------------------------------------
# Media Queries — Responsive
--------------------------------------------------------------*/

/* ── >= 768px ── */
@media screen and (min-width: 768px) {
  body:not(.theme-preset-active) #page-sub-header h1 { font-size: 3.75rem; }
  body:not(.theme-preset-active) #page-sub-header { font-size: 1.25rem; }
}

/* ── >= 769px ── */
@media screen and (min-width: 769px) {
  .dropdown-menu li > .dropdown-menu { right: -9.875rem; top: 1.375rem; }
}

/* ── >= 992px ── */
@media screen and (min-width: 992px) {
  #page-sub-header p { max-width: 43rem; margin: 0 auto; }
}

/* ── >= 37.5em ── */
@media screen and (min-width: 37.5em) {
  .menu-toggle { display: none; }
}

/* ── <= 1280px (Notebook) ── */
@media only screen and (max-width: 1280px) {
  html { font-size: 95%; }
}

/* ── <= 1199px ── */
@media screen and (max-width: 1199px) {
  .navbar-dark .dropdown-item { color: var(--color-white); }
  .navbar-nav .dropdown-menu { background: transparent; box-shadow: none; border: none; }
  .carousel-caption > h3 { font-size: 55px; }
  .carousel-caption > p { font-size: 25px; }
  .top-pillars { margin-top: -50px; }
}

/* ── <= 1024px (Netbook) ── */
@media only screen and (max-width: 1024px) {
  html { font-size: 90%; }
  .carousel-caption > h3 { font-size: 40px; }
  .carousel-caption > p { font-size: 20px; }
  .carousel-caption { bottom: 10%; }
  .item { height: 350px; max-height: 350px; }
}

/* ── <= 991px (Tablet) ── */
@media screen and (max-width: 991px) {
  .navbar-nav .dropdown-menu { border: medium none; margin-left: 1.25rem; padding: 0; }
  .dropdown-menu li a { padding: 0; }
  #masthead .navbar-nav > li > a { padding-bottom: var(--spacing-sm); padding-top: var(--spacing-xs); }
  .navbar-light .navbar-toggler { border: medium none; outline: none; }
}

/* ── <= 992px ── */
@media (max-width: 992px) {
  .main-image { margin-left: 0; }
  .small-image { position: static; width: 100%; margin: 0 auto; border: 0; }
}

/* ── <= 960px (iPad landscape) ── */
@media only screen and (max-width: 960px) {
  html { font-size: 85%; }
  .carousel-caption > h3 { font-size: 35px; }
  .carousel-caption > p { font-size: 15px; }
  .carousel-caption { bottom: 10%; }
  .item { height: 350px; max-height: 350px; }
}

/* ── <= 768px (iPad portrait) ── */
@media only screen and (max-width: 768px) {
  html { font-size: 80%; }
  .carousel-caption > h3 { font-size: 35px; }
  .carousel-caption > p { font-size: 15px; }
  .carousel-caption { bottom: 10%; }
  header#masthead { width: 75%; z-index: 99; }
  .item { height: 350px; max-height: 350px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  h3 { font-size: 20px; }
}

/* ── <= 767px ── */
@media screen and (max-width: 767px) {
  #masthead .navbar-nav > li > a { padding-bottom: 0.938rem; padding-top: 0.938rem; }
}

/* ── <= 480px (Mobile) ── */
@media only screen and (max-width: 480px) {
  html { font-size: 75%; }
  .carousel-caption > h3 { font-size: 25px; }
  .carousel-caption > p { font-size: 15px; }
  .item { height: 250px; max-height: 250px; }
  .carousel-caption { bottom: 10%; }
  header#masthead { top: 0; width: 100%; z-index: 99; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  h3 { font-size: 20px; }
  .top-pillars { flex-direction: column; margin-top: 0; border-radius: var(--border-radius-lg); }
  .top-pillar:first-child { border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0; }
  .top-pillar:last-child { border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg); }
  .top-pillar + .top-pillar { border-left: 1px solid var(--border-color); border-top: none; }
}

/*--------------------------------------------------------------
# Komponent Selector — kołowe menu (przeniesiony z header.php)
--------------------------------------------------------------*/
.selector {
  position: relative;
  left: 50%;
  top: 50%;
  margin-left: -70px;
  width: 140px;
  height: 140px;
}

.selector,
.selector button {
  font-family: var(--font-family-selector);
  font-weight: 300;
}

.selector button {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px;
  background: var(--color-selector);
  border-radius: var(--border-radius-circle);
  border: 0;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.selector button:hover { background: var(--color-selector-hover); }
.selector button:focus { outline: none; }

.selector ul {
  position: absolute;
  list-style: none;
  padding: 0;
  margin: 0;
  top: -20px;
  right: -20px;
  bottom: -20px;
  left: -20px;
}

.selector li {
  position: absolute;
  width: 0;
  height: 100%;
  margin: 0 50%;
  -webkit-transform: rotate(-360deg);
  transition: var(--transition-slow);
}

.selector li button {
  color: var(--text-primary);
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 0;
  height: 0;
  line-height: 1px;
  margin-left: 0;
  background: var(--color-gray-25);
  border-radius: var(--border-radius-circle);
  text-align: center;
  font-size: 1px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: none;
  transition: var(--transition-slow), color 0.1s, background 0.1s;
}

.selector li button:hover { background: #f0f0f0; }

.selector.open li button {
  width: 100px;
  height: 100px;
  line-height: 100px;
  margin-left: -40px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Pasek logotypów klientów — CSS infinite scroll (zamiennik Owl Carousel)
--------------------------------------------------------------*/
.customer-logos {
  overflow: hidden;
  padding: 20px 0;
  position: relative;
}

/* Maskowanie krawędzi — efekt fade-in/out */
.customer-logos::before,
.customer-logos::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.customer-logos::before {
  left: 0;
  background: linear-gradient(to right, var(--color-yellow), transparent);
}

.customer-logos::after {
  right: 0;
  background: linear-gradient(to left, var(--color-yellow), transparent);
}

.customer-logos-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: customer-scroll 30s linear infinite;
}

.customer-logos-track:hover {
  animation-play-state: paused;
}

.customer-logos-track img {
  flex-shrink: 0;
  max-width: 150px;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-base);
}

.customer-logos-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes customer-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/*--------------------------------------------------------------
# Timeline
--------------------------------------------------------------*/
ul.timeline {
  list-style-type: none;
  position: relative;
}

ul.timeline:before {
  content: ' ';
  background: var(--color-gray-200);
  display: inline-block;
  position: absolute;
  left: 29px;
  width: 2px;
  height: 100%;
  z-index: 400;
}

ul.timeline > li {
  margin: 20px 0;
  padding-left: 20px;
}

ul.timeline > li:before {
  content: ' ';
  background: white;
  display: inline-block;
  position: absolute;
  border-radius: var(--border-radius-circle);
  border: 3px solid var(--color-timeline);
  left: 20px;
  width: 20px;
  height: 20px;
  z-index: 400;
}

/*--------------------------------------------------------------
# Karty produktów (kafelki z tłem)
--------------------------------------------------------------*/
.product-card {
  background-size: cover;
  background-position: center;
  position: relative;
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card-overlay {
  background-color: var(--bg-overlay-dark);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.product-card .card-body {
  position: relative;
  z-index: 2;
  min-height: 280px;
}