/*
* Allintellect — elementy wspólne dla wszystkich podstron
*
* Źródło: autorski CSS z widgetów HTML serwisu allintellect.pl, oczyszczony
* i przeniesiony do plików motywu. Zmiany względem oryginału: usunięte @import
* fontów (ładowane przez wp_enqueue_style), ścieżki obrazów wskazują na motyw,
* kolory stref sterowane zmienną --ai-module-color zamiast sześciu duplikatów.
*/

.ai-menu-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	padding: 15px;
}
.ai-menu-item {
	text-align: center;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background-color: #fff;
	padding: 0;
	position: relative;
	height: 80px;
	display: flex;
	flex-direction: column;
}
.ai-strap {
	height: 6px;
	width: 100%;
}
.ai-menu-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.ai-menu-link {
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 8px;
	color: #000;
}
.ai-menu-title {
	font-size: 0.8em;
	font-weight: 600;
	color: #000;
	line-height: 1.2;
}
@media (max-width: 1024px) {
	.ai-menu-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 768px) {
	.ai-menu-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 500px) {
	.ai-menu-grid {
		grid-template-columns: 1fr;
	}
.ai-menu-item {
	height: 60px;
}
}

.contact-form-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.contact-form-container {
	position: relative;
	width: 100%;
	max-width: 800px;
	padding: 40px;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.contact-form-title {
	text-align: center;
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 20px;
	color: #333;
}

.wpcf7-form input,
.wpcf7-form textarea {
	width: 100%;
	padding: 12px;
	margin-bottom: 15px;
	border: 2px solid #ccc;
	border-radius: 8px;
	font-size: 16px;
	box-sizing: border-box;
}

.wpcf7-form input[type="submit"] {
	background: #007BFF;
	color: white;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
	border: none;
	cursor: pointer;
	transition: background 0.3s;
}

.wpcf7-form input[type="submit"]:hover {
	background: #0056b3;
}

.consent-wrapper {
	margin: 20px 0;
	font-size: 13px;
	line-height: 1.5;
	color: #666;
}

.consent-wrapper a {
	color: #007BFF;
	text-decoration: none;
}

.consent-wrapper a:hover {
	text-decoration: underline;
}

.ai-footer-container {
	font-family: 'Comfortaa', sans-serif;
	background-color: #111111;
	color: #fff;
	padding: 50px 30px 20px;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
	position: relative;
	overflow: hidden;
}

.ai-footer-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, #FF6600, #FFA500, #FF6600);
	animation: shimmerBorder 3s infinite linear;
	background-size: 200% 100%;
	z-index: 2;
}

@keyframes shimmerBorder {
	0% {
		background-position: 0% 0;
	}
100% {
	background-position: 200% 0;
}
}

.ai-footer-content {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.ai-footer-section {
	position: relative;
	padding: 0 15px;
}

.ai-footer-section h2 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 25px;
	position: relative;
	display: inline-block;
	color: #FF7B00;
}

.ai-footer-section h2:not(:first-child) {
	margin-top: 30px;
}

.ai-footer-section h2::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #FF6600;
	border-radius: 2px;
}

.ai-footer-section p {
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 12px;
}

.ai-footer-section a {
	color: #FFA500;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	position: relative;
}

.ai-footer-section a:hover {
	color: #FF7B00;
	text-shadow: 0 0 8px rgba(255, 123, 0, 0.4);
}

.ai-footer-section a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #FF7B00;
	transition: width 0.3s ease;
}

.ai-footer-section a:hover::after {
	width: 100%;
}

.ai-social-links {
	display: flex;
	gap: 15px;
	margin-top: 15px;
	flex-wrap: wrap;
}

.ai-footer-links {
	display: flex;
	gap: 15px;
	margin-top: 15px;
	flex-wrap: wrap;
}

.ai-social-btn,
.ai-footer-link {
	display: inline-block;
	padding: 8px 15px;
	background-color: rgba(255, 123, 0, 0.15);
	border-radius: 20px;
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 123, 0, 0.3);
}

.ai-social-btn:hover,
.ai-footer-link:hover {
	background-color: rgba(255, 123, 0, 0.3);
	transform: translateY(-3px);
	box-shadow: 0 5px 10px rgba(255, 123, 0, 0.2);
}

.ai-footer-bottom {
	max-width: 1200px;
	margin: 40px auto 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 123, 0, 0.2);
	text-align: center;
	font-size: 14px;
	color: #aaa;
}

/* Decorative elements */
.ai-footer-container::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 80% 50%, rgba(255, 123, 0, 0.08) 0%, rgba(255, 123, 0, 0) 50%);
	pointer-events: none;
}

.ai-footer-section::before {
	content: '';
	position: absolute;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: rgba(255, 123, 0, 0.03);
	top: -25px;
	left: -25px;
	z-index: -1;
}

/* Responsive adjustments */
@media (max-width: 900px) {
	.ai-footer-content {
		grid-template-columns: repeat(2, 1fr);
	}

.ai-footer-section:last-child {
	grid-column: span 2;
	text-align: center;
}

.ai-social-links,
.ai-footer-links {
	justify-content: center;
}
}

@media (max-width: 600px) {
	.ai-footer-content {
		grid-template-columns: 1fr;
	}

.ai-footer-section {
	text-align: center;
	padding-bottom: 20px;
}

.ai-footer-section:last-child {
	grid-column: span 1;
}

.ai-footer-section h2::after {
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
}
}

/* ─────────────────────────────────────────────────────────────
* Menu mobilne (hamburger + panel z listą stref)
* ───────────────────────────────────────────────────────────── */

.mm-mobile-container {
	display: none;
	margin: 0;
	padding: 0;
	background: linear-gradient(to right, #FFA500, #FF3C00);
	position: relative;
}

@media (max-width: 767px) {
	.mm-mobile-container {
		display: block;
		font-family: 'Poppins', sans-serif;
		width: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1000;
		height: 60px;
	}
}

.mm-hamburger {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 0;
	cursor: pointer;
	position: absolute;
	z-index: 1001;
	top: 50%;
	right: 0;
	height: 50px;
	width: 50px;
	transform: translateY(-50%);
}

.mm-icon {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 24px;
	height: 20px;
}

.mm-icon span {
	display: block;
	height: 3px;
	width: 100%;
	background-color: white;
	border-radius: 3px;
	transition: all 0.3s ease;
}

.mm-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 1002;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mm-menu {
	position: fixed;
	top: 0;
	right: -100%;
	width: 100%;
	height: 100%;
	background-color: white;
	z-index: 1003;
	overflow-y: auto;
	padding: 0;
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
	transition: right 0.3s ease;
	display: flex;
	flex-direction: column;
}

.mm-header {
	background: linear-gradient(to right, #FFA500, #FF3C00);
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 1004;
}

.mm-header h2 {
	color: white;
	margin: 0;
	font-size: 20px;
	font-weight: 600;
}

.mm-close {
	color: white;
	font-size: 30px;
	cursor: pointer;
	padding: 0 8px;
	line-height: 1;
}

.mm-services-list {
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mm-service-item {
	text-decoration: none;
	padding: 20px 15px;
	border-radius: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	transition: background-color 0.3s ease;
	position: relative;
	overflow: hidden;
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.mm-service-item:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.mm-service-item h3 {
	margin: 0;
	color: white;
	font-size: 16px;
	font-weight: 600;
	text-align: left;
	line-height: 1.3;
	max-width: 100%;
	word-wrap: break-word;
}

.menu-open .mm-menu {
	right: 0;
}

.menu-open .mm-overlay {
	display: block;
	opacity: 1;
}

.menu-open .mm-icon span:first-child {
	transform: translateY(8.5px) rotate(45deg);
}

.menu-open .mm-icon span:nth-child(2) {
	opacity: 0;
}

.menu-open .mm-icon span:last-child {
	transform: translateY(-8.5px) rotate(-45deg);
}

.mm-service-item {
	animation: mmFadeIn 0.3s ease-out;
	animation-fill-mode: both;
}

.mm-service-item:nth-child(1) { animation-delay: 0.1s; }

.mm-service-item:nth-child(2) { animation-delay: 0.2s; }

.mm-service-item:nth-child(3) { animation-delay: 0.3s; }

.mm-service-item:nth-child(4) { animation-delay: 0.4s; }

.mm-service-item:nth-child(5) { animation-delay: 0.5s; }

.mm-service-item:nth-child(6) { animation-delay: 0.6s; }

.mm-service-item {
	position: relative;
	overflow: hidden;
}

.mm-ripple {
	position: absolute;
	background-color: rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	transform: scale(0);
	animation: mmRipple 0.6s linear;
	pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────
 * Górny pasek z logo
 *
 * Na produkcji budował go JavaScript, wpisując style prosto w element.style.
 * Tutaj opisuje go arkusz. Zachowane wiernie: pozycja fixed, wysokość 60 px,
 * półprzezroczyste czarne tło i logo wyższe niż pasek, celowo poza niego
 * wystające. Poniżej 768 px pasek znika — tak samo jak w oryginale.
 * ───────────────────────────────────────────────────────────── */

.ai-topbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 60px;
	background-color: rgba(0, 0, 0, .5);
	z-index: 9999;
	display: flex;
	align-items: center;
}

.ai-topbar__logo {
	width: 100%;
	display: flex;
	justify-content: flex-start;
	padding-left: 20px;
}

.ai-topbar__logo img {
	height: 100px;
	width: auto;
	filter: brightness(1.2);
	transition: transform .3s ease;
}

.ai-topbar__logo a:hover img {
	transform: scale(1.05);
}

@media (max-width: 768px) {
	.ai-topbar { display: none; }
}


/* Hamburger pokazujemy wyłącznie na telefonach — w oryginale sterowała tym
   klasa elementor-hidden-desktop na kontenerze widgetu. */
@media (min-width: 768px) {
	.mm-mobile-container { display: none; }
}

/* Cząsteczki w stopce — inaczej niż na kafelkach: wznoszą się i gasną. */
@keyframes aiFloatFooter {
	0%   { transform: translateY(0) translateX(0); opacity: 0; }
	10%  { opacity: .1; }
	50%  { opacity: .2; }
	90%  { opacity: .1; }
	100% { transform: translateY(-100px) translateX(30px); opacity: 0; }
}

.ai-footer-section { position: relative; }
.ai-footer-section > * { position: relative; z-index: 2; }


/* Siatka działów jest widokiem desktopowym — na telefonach zastępuje ją menu
   wysuwane. W oryginale sterowała tym klasa elementor-hidden-mobile. */
@media (max-width: 767px) {
	.ai-menu-grid { display: none; }
}

/* ─────────────────────────────────────────────────────────────
 * Pływające przyciski kontaktowe
 *
 * Wymiary i zachowanie przepisane z oryginalnego skryptu: zakładka 180×55 px
 * schowana za prawą krawędzią (right: -130px), po najechaniu wysuwa się cała.
 * Pierwsza na wysokości 80 px, druga 65 px niżej. Na telefonach wędrują na dół
 * ekranu, bo u góry zasłaniałyby treść.
 * ───────────────────────────────────────────────────────────── */

.ai-kontakt-widget {
	position: fixed;
	right: -130px;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 180px;
	height: 55px;
	padding-left: 14px;
	background-color: #fff;
	color: #000;
	font-family: var(--ai-font);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 25px 0 0 25px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
	transition: right .3s ease;
}

.ai-kontakt-widget:nth-child(1) { top: 80px; }
.ai-kontakt-widget:nth-child(2) { top: 145px; }

.ai-kontakt-widget:hover,
.ai-kontakt-widget:focus-visible { right: 0; }

.ai-kontakt-widget__ikona {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	color: var(--ai-orange-4);
}

.ai-kontakt-widget__tekst { overflow: hidden; }

@media (max-width: 768px) {
	/* Na telefonie nie ma najeżdżania — zakładki stoją wysunięte przy dole. */
	.ai-kontakt-widget {
		right: -120px;
		width: 170px;
		height: 48px;
		font-size: 14px;
	}
	.ai-kontakt-widget:nth-child(1) { top: auto; bottom: 120px; }
	.ai-kontakt-widget:nth-child(2) { top: auto; bottom: 62px; }
}

/* ─────────────────────────────────────────────────────────────
 * Formularz kontaktowy motywu
 *
 * Używany, gdy w witrynie nie ma Contact Form 7. Utrzymany w typografii
 * i kolorystyce serwisu, w układzie jednokolumnowym jak formularz na produkcji.
 * ───────────────────────────────────────────────────────────── */

.ai-form { font-family: var(--ai-font); }

.ai-form__pole { margin: 0 0 18px; }

.ai-form__pole label {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
	color: #333;
}

.ai-form__pole input,
.ai-form__pole textarea {
	width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15px;
	color: #333;
	background: #fafafa;
	border: 1px solid #ddd;
	border-radius: 6px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.ai-form__pole input:focus,
.ai-form__pole textarea:focus {
	outline: none;
	border-color: var(--ai-orange-4);
	box-shadow: 0 0 0 3px rgba(255, 102, 0, .15);
	background: #fff;
}

.ai-form__pole textarea { resize: vertical; min-height: 140px; }

/* Pole-pułapka na roboty: musi istnieć w drzewie, ale nie może być
   widoczne ani dostępne z klawiatury. */
.ai-form__pulapka {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ai-form__zgoda {
	margin: 0 0 22px;
	font-size: 13px;
	line-height: 1.6;
	color: #555;
}

.ai-form__zgoda label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.ai-form__zgoda input {
	flex: 0 0 auto;
	margin-top: 3px;
	width: 18px;
	height: 18px;
	accent-color: var(--ai-orange-4);
}

.ai-form__zgoda a { color: var(--ai-orange-4); }

.ai-form__akcje { margin: 0; text-align: center; }

.ai-form__wyslij {
	display: inline-block;
	padding: 14px 34px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: var(--ai-orange-4);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.ai-form__wyslij:hover {
	background: var(--ai-orange-6);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(255, 60, 0, .3);
}

.ai-form__status {
	margin: 0 0 22px;
	padding: 14px 16px;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.5;
}

.ai-form__status--ok {
	background: #e8f5e9;
	color: #1b5e20;
	border: 1px solid #a5d6a7;
}

.ai-form__status--blad {
	background: #fdecea;
	color: #8b1a10;
	border: 1px solid #f5b3ac;
}

@media (max-width: 600px) {
	.contact-form-container { padding: 24px 18px; }
	.ai-form__wyslij { width: 100%; }
}
