/*
Theme Name: 	Primer Child Theme by Alfa Koncept
Theme Uri:  	https://github.com/godaddy/wp-primer-theme
Description:  	A child theme of Primer
Author:     	Alfa Koncept
Author Uri: 	https://alfakoncept.pl
Template:   	primer
Version:    	1.8.10
License:    	GNU General Public License v2 or later
*/

#masthead { display: none !important; }
#page > .main-navigation-container  { background: none !important; }
#content {}
.site-info-wrapper { background: none !important;  }
.site-info-wrapper .site-info-text { float: none !important; width: auto !important; text-align:center; }
.site-info-wrapper a, .site-info-wrapper .site-info-text { color: #000000; }
a#scrollUp { color: #a38d68; }
a { color: #000000; font-weight: bold; }
a:hover, .site-info-wrapper a:hover { color: #a38d68; }
.alfa-breadcrumb-bar a { color: #a38d68; }

#alfa_header0,#alfa_header1,#alfa_header2 {
	float: left;
}
#alfa_header2 .site-title a, #alfa_header2 .site-description {
	color: #c4a261 !important;
}
.main-navigation-container {
	/* background: #333334 !important; */
}
#alfa_header2 a, #alfa_header2 a:hover, #alfa_header2 .site-description {
	color: #49494a;
}
.n2-section-smartslider {
	margin-bottom: 70px !important;
}
/* Alfa Breadcrumb – bez tła, obramowania i cieni */
.alfa-breadcrumb-bar{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
@media only screen and (min-width: 1200px) {
	#alfa_header {
		width: 1170px;
		margin: 0 auto;
		padding: 0px;
	}
	#alfa_header0 {
		width: 310px;
		margin: 0px;
		padding: 0px;
	}
	#alfa_header0 img {
		padding: 5px;
		width: 300px;
		height: 184px;
		margin: 0px;
	}

	#alfa_header1 {
		display: block;
		width: 1170px;
		text-align: right;
		margin-top: 20px;
		margin-right: 20px;
		margin-bottom: 10px;
	}
	#alfa_header1 a {
		padding: 5px 7px 5px 7px;
		display: flex;
		align-items: center;
		float: right;
	}
	#alfa_header1 a svg {
		width: 24px;
		height: 24px;
	}
	#alfa_header1 a:hover {
		text-decoration-color: #846b40 !important;
	}
	#alfa_header1 a span {
		color: #c4a261;
		margin-left: 3px;
		font-weight: 800;
	}
	#alfa_header2 {
		display: block;
		padding-top: 5px;
		padding-left:60px;
		width: 800px;
	}
	#header_logo {
		height: 100px;
		float: left;
	}

	#alfa_header2 .site-title a {
		font-size: 30px;
	}
	#alfa_header2 .site-description {
		font-size: 20px;
	}
	#masthead {
		height: 194px !important;
	}
	.site-header-wrapper {
		padding: 0px;
	}
	.site-title-wrapper {
		padding: 0px;
	}
}

@media only screen and (max-width: 1199px) and (min-width: 780px){
	#alfa_header {
		width: 760px;
		margin: 0 auto;
		padding: 0px;
	}
	#alfa_header0 {
		width: 210px;
		margin: 0px;
		padding: 0px;
	}
	#alfa_header0 img {
		padding: 5px;
		width: 200px;
		height: 123px;
		margin: 0px;
	}
	#alfa_header1 {
		display: block;
		width: 760px;
		text-align: right;
		margin-top: 10px;
	}
	#alfa_header1 a {
		padding: 4px;
		display: flex;
		align-items: center;
		float: right;
		font-size: 10px;
	}
	#alfa_header1 a svg{
		width: 18px;
		height: 18px;
	}
	#alfa_header1 a:hover {
		text-decoration-color: #846b40 !important;
	}
	#alfa_header1 a span {
		color: #c4a261;
		margin-left: 3px;
		font-weight: 800;
	}
	#header_logo {
		height: 85px;
		float: left;
	}
	#alfa_header2 {
		display: block;
		padding-left: 40px;
		width: 510px;
	}
	#alfa_header2 .site-title a {
		font-size: 20px;
		padding-top: 0px !important;
	}
	#alfa_header2 .site-description {
		font-size: 15px;
	}
	#masthead {
		height: 133px !important;
	}
	.site-header-wrapper {
		padding: 0px;
	}
	.site-title-wrapper {
		padding: 0px;
	}
}



/* === KONFIG / BAZA === */
.wpcf7-form {
  --brand: #a38d68;
  --brand-dark: #8f7b57;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px; /* rzędy, kolumny */
  max-width: 960px;
  margin: 0 auto;
  color: var(--text);
}

/* reset domyślnych odstępów */
.wpcf7-form p { margin: 0; }
.wpcf7-form label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 400; /* brak pogrubienia */
}

/* pola tekstowe */
.wpcf7-form .wpcf7-form-control {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.3;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.wpcf7-form .wpcf7-form-control::placeholder { color: #9ca3af; }
.wpcf7-form .wpcf7-form-control:hover { background-color: #fcfcfc; }
.wpcf7-form .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand), white 80%);
}

/* === UKŁAD (wg kolejności <p>) === */
/* 1) Imię i nazwisko – pełna szerokość */
.wpcf7-form > p:nth-of-type(1) { grid-column: 1 / -1; }
/* 2) Telefon – lewa kolumna */
.wpcf7-form > p:nth-of-type(2) { grid-column: 1 / 2; }
/* 3) E-mail – prawa kolumna */
.wpcf7-form > p:nth-of-type(3) { grid-column: 2 / 3; }
/* 4) Wiadomość – pełna szerokość */
.wpcf7-form > p:nth-of-type(4) { grid-column: 1 / -1; }
/* 5) Zgoda – pełna szerokość */
.wpcf7-form > p:nth-of-type(5) { grid-column: 1 / -1; }
/* 6) Przycisk – pełna szerokość + wyśrodkowanie */
.wpcf7-form > p:nth-of-type(6) {
  grid-column: 1 / -1;
  text-align: center;
}

/* textarea 70px */
.wpcf7-form textarea.wpcf7-textarea {
  height: 70px;
  min-height: 70px;
  resize: vertical; /* zmień na none, jeśli ma być sztywno 70px */
}

/* === ZGODA (acceptance) === */
.wpcf7-form .wpcf7-acceptance { display: block; }
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  display: block;
  margin: 0;
}

/* checkbox + tekst zgody bez pogrubienia */
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item > label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 400;       /* ważne: tekst zgody niepogrubiony */
  color: var(--text);
  margin: 0;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
  cursor: pointer;
}
.wpcf7-form .wpcf7-acceptance input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand), white 80%);
  border-radius: 4px;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 400;       /* nadpisuje ewentualne style motywu */
}

/* tip błędu pod polem / checkboxem */
.wpcf7-not-valid-tip {
  font-size: 13px;
  color: #b91c1c;
  margin-top: 6px;
}

/* === PRZYCISK WYSYŁKI === */
.wpcf7-form input.wpcf7-submit {
  display: inline-block;
  background: var(--brand);   /* #a38d68 */
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .12s ease, background-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.wpcf7-form input.wpcf7-submit:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px color-mix(in oklab, var(--brand), black 85% / 6%);
}
.wpcf7-form input.wpcf7-submit:active { transform: translateY(0); }
/* gdy CF7 blokuje przycisk (np. brak zaznaczonej zgody) */
.wpcf7-form input.wpcf7-submit[disabled] {
  opacity: .6;
  cursor: not-allowed;
  box-shadow: none;
}

/* spinner przy przycisku */
.wpcf7-spinner { margin-left: 10px; vertical-align: middle; }

/* WPCF7: komunikat po wysłaniu / błędzie na pełną szerokość */
.wpcf7-form .wpcf7-response-output {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px !important;
  border: 1px solid #ef4444 !important; /* domyślnie traktuj jako błąd */
  background: #fff5f5;
  color: #991b1b;
  padding: 12px 14px !important;
  margin: 6px 0 0 !important;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #16a34a !important;
  background: #f0fff4;
  color: #166534;
}
.wpcf7 form.submitting .wpcf7-response-output {
  border-color: var(--brand) !important;
  background: #faf7f2;
  color: #5b4e38;
}

/* wyróżnienie błędnych pól */
.wpcf7-not-valid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px color-mix(in oklab, #ef4444, white 80%) !important;
}

/* nietypowy element z Twojego HTML (żeby nie nachodził na pole) */
.wpcf7-form shark-icon-container {
  inset: auto auto auto 0;
  transform: translateY(42px);
  pointer-events: none;
}

/* === RESPONSYWNOŚĆ ===
@media (max-width: 992px) {
  .wpcf7-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .wpcf7-form > p { grid-column: 1 / -1; }
}
*/

@media (max-width: 992px) {
  .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
  }

  .wpcf7-form > p {
    width: 100%;
    margin: 0;
  }

  .wpcf7-form label {
    display: block;
    width: 100%;
  }

  .wpcf7-form .wpcf7-form-control,
  .wpcf7-form textarea.wpcf7-textarea,
  .wpcf7-form input.wpcf7-submit {
    width: 100%;
    box-sizing: border-box;
  }

  /* checkbox – również pełna szerokość */
  .wpcf7-form .wpcf7-acceptance .wpcf7-list-item > label {
    grid-template-columns: 20px 1fr;
    width: 100%;
    align-items: start;
  }

  /* przycisk wyślij – wycentrowany na pełnej szerokości */
  .wpcf7-form > p:nth-of-type(6) {
    text-align: center;
    width: 100%;
  }

  /* komunikat po wysłaniu – też na 100% */
  .wpcf7-form .wpcf7-response-output {
    width: 100%;
  }
}





.wpcf7-form.cf7-pristine .wpcf7-not-valid-tip {
  display: none !important;
}
.wpcf7-form.cf7-pristine .wpcf7-not-valid {
  border-color: var(--border) !important;
  box-shadow: none !important;
}





@media (min-width: 992px) {
	#mega-menu-wrap-primary { position: relative; z-index: 10000; }
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item { position: relative; }
	#mega-menu-wrap-primary .mega-sub-menu {
	  position: absolute;
	  top: 100% !important;
	  left: 0;
	  margin-top: 0 !important;
	}
	.site-info-wrapper { background: none !important;  white-space: nowrap; }
}


@media (max-width: 992px) {
	.alfa-breadcrumb-bar { margin-top: 100px;  }
}

@media (max-width: 992px) {
	html, body {
		overflow-x: hidden !important;
	}
	.main-navigation-container #menu-toggle div {
		background-color: #a38d68 !important;
	}
	.main-navigation-container #menu-toggle {
	  z-index: 999999 !important;
	}
	#site-navigation {
		position: fixed;
		z-index: 99999 !important;
		top: 0px;
		left: 0px;
		right: 0px;
		bottom: 0px;
	}
	#mega-menu-wrap-primary .mega-menu > li:first-child {
		display: block !important;
		text-align: center !important;
	}
	#mega-menu-wrap-primary .mega-menu {
		min-height: calc(100svh - 0px) !important;
		max-height: 100svh !important;
	}
  #mega-menu-wrap-primary .mega-menu {
    display: block !important;
    text-align: center !important;
  }
  #mega-menu-wrap-primary #mega-menu-primary > li {
    display: block !important;
    float: none !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #mega-menu-wrap-primary #mega-menu-primary > li > a.mega-menu-link {
    display: block !important;
    float: none !important;
    width: 100% !important;
    line-height: 1.3 !important;
  }
  #mega-menu-wrap-primary #mega-menu-primary > li > .mega-sub-menu {
    display: none !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    box-shadow: none !important;
  }
  #mega-menu-wrap-primary #mega-menu-primary > li.mega-toggle-on > .mega-sub-menu,
  #mega-menu-wrap-primary #mega-menu-primary > li > a[aria-expanded="true"] + .mega-sub-menu {
    display: block !important;
  }
  #mega-menu-wrap-primary .mega-sub-menu > li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    text-align: center !important;
  }
  #mega-menu-wrap-primary .mega-sub-menu > li > a.mega-menu-link {
    display: inline-block !important;
    width: auto !important;
    white-space: normal !important;
    padding: .5rem 1rem !important;
  }
  #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children > a.mega-menu-link > span.	mega-indicator {
    float: none !important;
   }
  a#scrollUp {
	z-index: 99998 !important;
	}
}
#mega-menu-wrap-primary .mega-sub-menu { margin-top: 10px !important; }