/*
 * Fertan - style motywu potomnego Warehouse.
 * Kolory, czcionki i układ nagłówka/stopki ustawia się w edytorze motywu (iqitthemeeditor);
 * tutaj jest tylko to, czego nie da się tam wyklikać.
 */
:root {
  --f-red: #e21f26;
  --f-red-dark: #b9151b;
  --f-dark: #16181d;
  --f-text: #3d4149;
  --f-muted: #6b7080;
  --f-light: #f5f6f8;
  --f-border: #e4e6ea;
}

/* ---------- nagłówek ---------- */
#desktop_logo img.logo,
#mobile-header .logo {
  max-height: 60px;
  width: auto;
}

/* witryna bez kont klientów */
#header-user-btn,
#mobile-header .col-mobile-btn-account {
  display: none !important;
}

#header .header-nav a:hover {
  text-decoration: none;
}

.cbp-hrmenu > ul > li > a .cbp-tab-title {
  position: relative;
}

.cbp-hrmenu .cbp-hrsub-inner {
  border-top: 3px solid var(--f-red);
  border-radius: 0 0 8px 8px;
}

/* ---------- stopka ---------- */
#footer {
  margin-top: 0;
}

#footer-copyrights .copyright-txt,
#footer-copyrights .copyright-txt p {
  margin: 0;
  color: #8b90a0;
  font-size: 13px;
}

#footer-copyrights .copyright-txt a {
  color: #fff;
}

/* ---------- strony treści ---------- */
body#cms #inner-wrapper,
body#index #inner-wrapper {
  padding-bottom: 0;
}

body#cms .page-header h1,
body#cms h1.page-title {
  margin-bottom: 8px;
}

.fertan-h2 .elementor-heading-title {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 14px;
  color: var(--f-dark);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.fertan-h2 .elementor-heading-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--f-red);
}

.fertan-center .elementor-heading-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.fertan-h3 .elementor-heading-title {
  margin: 0 0 12px;
  color: var(--f-dark);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.fertan-text {
  font-size: 16px;
  line-height: 1.7;
}

.fertan-lead p:first-child {
  color: var(--f-dark);
  font-size: 18px;
}

.fertan-text ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.fertan-text ul li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 26px;
}

.fertan-text ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--f-red);
}

.fertan-figure img {
  border-radius: 6px;
}

.fertan-chapter + .fertan-chapter > .elementor-container {
  border-top: 1px solid var(--f-border);
  padding-top: 24px;
}

/* ---------- kafelki ---------- */
.fertan-card > .elementor-widget-container {
  height: 100%;
  padding: 30px 24px;
  background: #fff;
  border: 1px solid var(--f-border);
  border-radius: 10px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.fertan-card:hover > .elementor-widget-container {
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(22, 24, 29, 0.12);
  transform: translateY(-3px);
}

.fertan-card .elementor-icon-box-title,
.fertan-card .elementor-icon-box-title a {
  color: var(--f-dark);
  font-size: 20px;
  font-weight: 600;
}

.fertan-card:hover .elementor-icon-box-title a {
  color: var(--f-red);
}

.fertan-card .elementor-icon-box-description {
  color: var(--f-muted);
  font-size: 15px;
}

.fertan-cards .elementor-column > .elementor-column-wrap,
.fertan-cards .elementor-widget-wrap,
.fertan-cards .elementor-widget-icon-box {
  height: 100%;
}

/* ---------- pas kontaktowy ---------- */
.fertan-cta .elementor-heading-title {
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.25;
}

.fertan-cta .elementor-text-editor p {
  margin: 0;
}

.fertan-btn-red .elementor-button {
  border-radius: 6px;
  font-weight: 600;
}

/* ---------- strona kontaktowa ---------- */
.fertan-contact-list .elementor-icon-list-item {
  padding: 6px 0;
  font-size: 17px;
}

.fertan-map-col iframe {
  border-radius: 10px;
}

/* ---------- katalog produktów ---------- */
#wrapper .product-title a {
  color: var(--f-dark);
  font-weight: 600;
}

#wrapper .product-title a:hover {
  color: var(--f-red);
}

@media (max-width: 767px) {
  .fertan-h2 .elementor-heading-title {
    font-size: 24px;
  }

  .fertan-cta .elementor-align-right {
    text-align: left;
  }
}

/* ---------- odstępy nad stopką ---------- */
body#cms #wrapper,
body#index #wrapper {
  padding-bottom: 0;
}

body#cms #content,
body#index #content {
  margin-bottom: 0;
}

.fertan-card h3.elementor-icon-box-title a {
  color: inherit !important;
}

/* ---------- strona główna ---------- */
body#index #wrapper {
  padding-top: 0;
}

.fertan-hero img {
  width: 100%;
}

.fertan-usp .elementor-icon-box-title {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
}

.fertan-usp .elementor-icon-box-description {
  color: var(--f-muted);
  font-size: 14px;
  line-height: 1.5;
}

.fertan-usp .elementor-icon-box-description p {
  margin: 0;
}

.fertan-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: var(--f-muted);
}

.fertan-concept-title .elementor-heading-title {
  margin-bottom: 14px;
  font-size: 34px;
  font-weight: 700;
}

.fertan-concept-text {
  font-size: 19px;
  line-height: 1.6;
}

.fertan-concept-text p {
  margin: 0;
}

/* kafle obszarów zastosowań: zdjęcie z przyciemnieniem i tekstem na dole */
.fertan-area .elementor-iqit-banner {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.fertan-area .elementor-iqit-banner-img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.5s;
}

.fertan-area:hover .elementor-iqit-banner-img img {
  transform: scale(1.04);
}

.fertan-area .elementor-iqit-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(22, 24, 29, 0.05) 30%, rgba(22, 24, 29, 0.9) 100%);
  opacity: 1;
}

.fertan-area .elementor-iqit-banner-content {
  z-index: 2;
  padding: 28px;
}

.fertan-area .elementor-iqit-banner-title {
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 700;
}

.fertan-area .elementor-iqit-banner-description {
  max-width: 520px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.55;
}

.fertan-areas {
  margin-bottom: 20px;
}

.fertan-step-number .elementor-heading-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}

.fertan-step-title .elementor-heading-title {
  margin: 10px 0 8px;
  font-size: 22px;
  font-weight: 600;
}

.fertan-steps .elementor-column + .elementor-column > .elementor-column-wrap {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.fertan-quality-title .elementor-heading-title {
  margin-bottom: 20px;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fertan-quality-text {
  font-size: 14px;
}

.fertan-quality-text p {
  margin: 12px 0 0;
}

.fertan-btn-white .elementor-button {
  background: #fff;
  color: var(--f-red);
  border-radius: 6px;
  font-weight: 600;
}

.fertan-btn-white .elementor-button:hover {
  background: var(--f-dark);
  color: #fff;
}

.fertan-btn-outline .elementor-button {
  background: transparent;
  border: 2px solid var(--f-dark);
  border-radius: 6px;
  color: var(--f-dark);
  font-weight: 600;
}

.fertan-btn-outline .elementor-button:hover {
  background: var(--f-dark);
  color: #fff;
}

.fertan-products .product-miniature {
  background: #fff;
  border-radius: 10px;
}

@media (max-width: 767px) {
  .fertan-steps .elementor-column + .elementor-column > .elementor-column-wrap {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .fertan-area .elementor-iqit-banner-title {
    font-size: 21px;
  }

  .fertan-concept-title .elementor-heading-title {
    font-size: 26px;
  }
}

/* ---------- czcionka nagłówków także w elementach Elementora ---------- */
.elementor-heading-title,
.elementor-icon-box-title,
.elementor-iqit-banner-title {
  font-family: 'Barlow', sans-serif;
}

.fertan-btn-outline {
  margin-top: 10px;
}

/* ---------- karta produktu ---------- */
.fertan-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.fertan-buy .btn {
  border-radius: 6px;
  font-weight: 600;
}

#product .product-information .rte-content,
#product .product-description {
  font-size: 15px;
  line-height: 1.65;
}

.fertan-scan img {
  max-width: 360px;
  width: 100%;
  border: 1px solid var(--f-border);
  box-shadow: 0 10px 28px rgba(22, 24, 29, 0.1);
}

/* ---------- wersja mobilna ---------- */
@media (max-width: 767px) {
  /* w pasku górnym zostają same numery telefonów */
  .header-nav .left-nav .block-iqitlinksmanager li:first-child {
    display: none;
  }

  /* na wąskim ekranie opis nie mieści się na zdjęciu - zostaje tytuł i przycisk */
  .fertan-area .elementor-iqit-banner-description {
    display: none;
  }

  .fertan-area .elementor-iqit-banner-content {
    padding: 18px;
  }

  .fertan-areas {
    margin-bottom: 0;
  }

  .fertan-areas .elementor-column {
    margin-bottom: 16px;
  }

  .fertan-usp .elementor-icon-box-wrapper {
    margin-bottom: 18px;
  }

  .fertan-quality {
    margin-top: 24px;
  }

  .fertan-buy .btn {
    width: 100%;
  }
}
