/* 
Theme Name: Margraf
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Lekki motyw potomny dla Hello Elementor, stworzony przez Freeline, aby bezpiecznie rozwijać wygląd strony bez nadpisywania zmian po aktualizacjach.
Author: Freeline
Author URI: https://freeline.pl/
Template: hello-elementor
Version: 1.0
Text Domain: hello-margraf-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

header .elementor-sticky--active .main-navbar {
  box-shadow: 0px 5px 10px rgba(200, 200, 200, 0.5);
}

.rank-math-breadcrumb{	
	font-family: var(--e-global-typography-7a88920-font-family), Sans-serif;
    font-size: var(--e-global-typography-7a88920-font-size);
    text-transform: var(--e-global-typography-7a88920-text-transform);
    line-height: var(--e-global-typography-7a88920-line-height);
	color: #fff;
}
.rank-math-breadcrumb a{
	color: #fff;
}
.rank-math-breadcrumb p{
	    gap: 8px;
    display: flex;
    flex-direction: row;
}

.rank-math-breadcrumb a:hover{
	text-decoration: underline;
}

.btn {
  display: inline-flex !important;
}

.btn a {
  position: relative;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;

  border-style: solid;
  border-radius: 999px !important;
  border-color: transparent !important;
  border-width: 2px !important;

  color: #fff !important;
  font-size: var(--e-global-typography-cd69821-font-size);
  font-weight: var(--e-global-typography-cd69821-font-weight);
  line-height: var(--e-global-typography-cd69821-line-height);
  font-family: var(--e-global-typography-b96f49a-font-family);
  letter-spacing: var(--e-global-typography-cd69821-letter-spacing);
text-transform: uppercase;
  background: transparent !important;
  transition: color 0.3s ease;
	padding: 16px 52px !important;
}

.btn a::before,
.btn a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
}

/* =========================
   Primary button
========================= */

.btn-primary a::before {
  background: linear-gradient(90deg, #006FB0, #51A642);
  transform: scaleX(1);
}

.btn-primary a::after {
  background: linear-gradient(90deg, #006FB0 40%, #51A642);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary a:hover::after {
  opacity: 1;
}

/* =========================
   Ghost button
========================= */

.btn-ghost a {
  background: transparent !important;
	border-color: var(--e-global-color-accent) !important;
  color: var(--e-global-color-accent) !important;
}

.btn-ghost a::before {
  background: linear-gradient(90deg, #006FB0, #51A642);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.btn-ghost a::after {
  display: none;
}

.btn-ghost a:hover {
  color: #fff !important;
}

.btn-ghost a:hover::before {
  transform: scaleX(1);
}


.pills-wrapper{
	display:flex;
	flex-direction: row !important;
	flex-wrap: wrap;
	gap: 16px;
	    min-height: 80px;
    align-items: center;
}
.pills-wrapper .pill{
	width: fit-content;
	padding: 8px 16px;
	background: #F6FAFF;
	border-radius: 999px;
	text-transform: uppercase;
	color: #2B2728;
	display: inline-flex;
}

/* ============================
 * Form button
 * ==========================*/

.elementor-widget-form button {
  display: inline-flex !important;
	justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;

  border-style: solid;
  border-radius: 999px !important;
  border-color: transparent !important;
  border-width: 2px !important;

  color: #fff !important;
  font-size: var(--e-global-typography-cd69821-font-size);
  font-weight: var(--e-global-typography-cd69821-font-weight);
  line-height: var(--e-global-typography-cd69821-line-height);
  font-family: var(--e-global-typography-b96f49a-font-family);
  letter-spacing: var(--e-global-typography-cd69821-letter-spacing);
  text-transform: uppercase;

  background: transparent !important;
  transition: color 0.3s ease;
  padding: 16px 52px !important;
}

.elementor-widget-form button::before,
.elementor-widget-form button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
}

.elementor-widget-form button::before {
  background: linear-gradient(90deg, #006FB0, #51A642);
  transform: scaleX(1);
}

.elementor-widget-form button::after {
  background: linear-gradient(90deg, #006FB0 40%, #51A642);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.elementor-widget-form button:hover::after {
  opacity: 1;
}

#menu-header {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

#menu-header.menu-hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}


/* =========================
   CATEGORY GRID - BASE
========================= */

.category-grid {
  --cat-gap: 32px;
}

/* Prawdziwy kontener Loop Grid */
.category-grid .elementor-loop-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: var(--cat-gap) !important;

  align-items: stretch !important;

  /* wyłączenie zachowania gridowego Elementora */
  grid-template-columns: unset !important;
  grid-auto-columns: unset !important;
  grid-auto-flow: unset !important;

  column-gap: var(--cat-gap) !important;
  row-gap: var(--cat-gap) !important;
}

/* Wrapper itemu Elementora */
.category-grid .elementor-loop-container > .e-loop-item {
  box-sizing: border-box !important;

  display: flex !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;

  margin: 0 !important;
}

/* Właściwy kafelek */
.category-grid .elementor-loop-container > .e-loop-item > .category-card {
  box-sizing: border-box !important;

  width: 100% !important;
  height: 100% !important;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 40px;
  border-radius: 32px;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  position: relative;
  overflow: hidden;

  min-height: 260px;

  /* Elementor container vars */
  --min-height: 260px;
  --justify-content: center;
  --align-items: center;
  --border-radius: 32px;
  --padding-top: 40px;
  --padding-right: 40px;
  --padding-bottom: 40px;
  --padding-left: 40px;
}
/* =========================
   DOMYŚLNIE: 3 KAFELKI W RZĘDZIE
   klasa:
   category-grid
========================= */

.category-grid:not(.category-grid-lg):not(.category-grid-sm)
  .elementor-loop-container
  > .e-loop-item:nth-of-type(n) {
  flex: 0 0 calc((100% - 2 * var(--cat-gap)) / 3) !important;
  width: calc((100% - 2 * var(--cat-gap)) / 3) !important;
  max-width: calc((100% - 2 * var(--cat-gap)) / 3) !important;
}

/* =========================
   WARIANT LG: 4 + 3
   klasa:
   category-grid category-grid-lg
========================= */

/* pierwszy rząd: 4 kafelki */
.category-grid.category-grid-lg .elementor-loop-container > .e-loop-item:nth-of-type(-n + 4) {
  flex: 0 0 calc((100% - 3 * var(--cat-gap)) / 4) !important;
  width: calc((100% - 3 * var(--cat-gap)) / 4) !important;
  max-width: calc((100% - 3 * var(--cat-gap)) / 4) !important;
}

/* drugi rząd: 3 kafelki */
.category-grid.category-grid-lg .elementor-loop-container > .e-loop-item:nth-of-type(n + 5) {
  flex: 0 0 calc((100% - 2 * var(--cat-gap)) / 3) !important;
  width: calc((100% - 2 * var(--cat-gap)) / 3) !important;
  max-width: calc((100% - 2 * var(--cat-gap)) / 3) !important;
}


/* =========================
   WARIANT SM: 3 + 2
   klasa:
   category-grid category-grid-sm
========================= */

/* pierwszy rząd: 3 kafelki */
.category-grid.category-grid-sm .elementor-loop-container > .e-loop-item:nth-of-type(-n + 3) {
  flex: 0 0 calc((100% - 2 * var(--cat-gap)) / 3) !important;
  width: calc((100% - 2 * var(--cat-gap)) / 3) !important;
  max-width: calc((100% - 2 * var(--cat-gap)) / 3) !important;
}

/* drugi rząd: 2 kafelki */
.category-grid.category-grid-sm .elementor-loop-container > .e-loop-item:nth-of-type(n + 4) {
  flex: 0 0 calc((100% - var(--cat-gap)) / 2) !important;
  width: calc((100% - var(--cat-gap)) / 2) !important;
  max-width: calc((100% - var(--cat-gap)) / 2) !important;
}

/* .category-grid .category-card{
	background-size: contain!important;
} */

.category-dark .category-card::before{
	background-color: #29479480 !important;
}

/* .category-dark .category-card{
	background-size: cover!important;
} */
.category-dark .category-card .elementor-heading-title{
	color: #fff !important;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {
  .category-grid {
    --cat-gap: 24px;
  }

  .category-grid .elementor-loop-container > .e-loop-item:nth-of-type(n) {
    flex: 0 0 calc((100% - var(--cat-gap)) / 2) !important;
    width: calc((100% - var(--cat-gap)) / 2) !important;
    max-width: calc((100% - var(--cat-gap)) / 2) !important;
  }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {
  .category-grid {
    --cat-gap: 20px;
  }

  .category-grid .elementor-loop-container > .e-loop-item:nth-of-type(n) {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .category-grid .elementor-loop-container > .e-loop-item > .category-card {
    padding: 32px 24px;

    --padding-top: 32px;
    --padding-right: 24px;
    --padding-bottom: 32px;
    --padding-left: 24px;
  }
}


.features-wrapper ul{
	display: flex;
	flex-direction: row;
	align-content: center;
    justify-content: flex-start;
	gap: 20px;
	list-style-type: none;
	padding:0;
}
.features-wrapper ul li{
	padding: 8px 16px;
	background: #E5FFAD;
	border-radius: 999px;
	filter: drop-shadow(0px 4px 8px rgba(41,72,150, 0.15));
}


/* Parzyste elementy w Elementor Loop Grid */
.category-list .elementor-loop-container > .e-loop-item:nth-of-type(even) .category-item-box {
  background-color: var(--e-global-color-5ec9941);
  border-color: var(--e-global-color-5ec9941);
  --border-color: var(--e-global-color-5ec9941);
}

/* Nadpisanie tła Elementora */
.category-list .elementor-loop-container > .e-loop-item:nth-of-type(even) .category-item-box:not(.elementor-motion-effects-element-type-background),
.category-list .elementor-loop-container > .e-loop-item:nth-of-type(even) .category-item-box > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-color: var(--e-global-color-5ec9941);
}

/* Kolor tekstów poza .features-wrapper */
.category-list .elementor-loop-container > .e-loop-item:nth-of-type(even) .category-item-box > *:not(.features-wrapper),
.category-list .elementor-loop-container > .e-loop-item:nth-of-type(even) .category-item-box > *:not(.features-wrapper) * {
  color: var(--e-global-color-6249eb5);
}

/* Opcjonalnie: gdy Elementor mocno nadpisuje style */
.category-list .elementor-loop-container > .e-loop-item:nth-of-type(even) .category-item-box .elementor-heading-title,
.category-list .elementor-loop-container > .e-loop-item:nth-of-type(even) .category-item-box .elementor-widget-text-editor,
.category-list .elementor-loop-container > .e-loop-item:nth-of-type(even) .category-item-box .elementor-button-text {
  color: var(--e-global-color-6249eb5);
}

/* Wyłączenie zmiany koloru w .features-wrapper */
.category-list .elementor-loop-container > .e-loop-item:nth-of-type(even) .category-item-box .features-wrapper,
.category-list .elementor-loop-container > .e-loop-item:nth-of-type(even) .category-item-box .features-wrapper * {
  color: inherit;
}
