/*
Theme Name: Dom Weselny Gidle
Theme URI: https://domweselnygidle.pl/
Author: 4ever Solutions
Description: Motyw strony Domu Weselnego Gidle, przeznaczony do pracy z Elementorem i wtyczką widgetów Dom Weselny Gidle.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: gdl
*/

/* ---------- Tokeny ---------- */
:root {
	--gdl-bg: #f9f9f9;
	--gdl-grey: #f1f1f1;
	--gdl-text: #727272;
	--gdl-white: #fff;
	--gdl-black: #000;
	--gdl-font-body: "Open Sans", sans-serif;
	--gdl-font-text: "Quicksand", sans-serif;
	--gdl-font-head: "Cormorant Garamond", serif;
	--gdl-font-popup: "Abhaya Libre", serif;
	--gdl-content: 1080px;
	--gdl-row-pad: 27px;
	--gdl-sec-pad: 54px;
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font: 500 14px/1.7em var(--gdl-font-body);
	color: var(--gdl-text);
	background: var(--gdl-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; padding-bottom: 1em; }
p:last-of-type { padding-bottom: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0 0 10px; font-weight: 500; line-height: 1.3em; }
.gdl-anchor { display: block; height: 0; }
.gdl-site { position: relative; overflow-x: clip; }

/* ---------- Ikony ---------- */
.gdl-ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; }
.gdl-ico svg { display: block; width: 100%; height: 100%; }

/* ---------- Nagłówek ---------- */
.gdl-header { position: absolute; top: 0; left: 0; right: 0; z-index: 500; }
.gdl-topbar {
	display: flex; align-items: center; justify-content: space-between;
	height: 42px; padding: 0 1.5%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff; font: 500 13px/23.8px var(--gdl-font-text);
}
.gdl-topbar__info { display: flex; align-items: center; flex-wrap: nowrap; }
.gdl-topbar__item { display: inline-flex; align-items: center; margin-right: 27px; color: #fff; white-space: nowrap; }
.gdl-topbar__item .gdl-ico { margin-right: 5px; font-size: 13px; }
.gdl-topbar__cta {
	display: inline-block; margin: 5px 0; padding: 3px 14px;
	border: 1px solid #fff; border-radius: 13px;
	color: #fff; font: 300 14px/23.8px var(--gdl-font-body); text-transform: uppercase; white-space: nowrap;
}
.gdl-topbar__cta:hover { background: rgba(255, 255, 255, 0.12); }

.gdl-navbar { height: 60px; padding: 15px 0; transition: background-color .3s, box-shadow .3s; }
.gdl-nav .gdl-menu { display: flex; justify-content: center; align-items: flex-start; }
.gdl-nav .gdl-menu li { padding: 8px 35px 0; }
.gdl-nav .gdl-menu a {
	display: block; padding-bottom: 8px;
	font: 500 20px/14px var(--gdl-font-head); letter-spacing: 3px; text-transform: uppercase;
	color: #fff; transition: color .3s;
}
.gdl-nav .gdl-menu a:hover { color: #d3d3d3; }

.gdl-header.is-stuck .gdl-navbar {
	position: fixed; top: 0; left: 0; right: 0;
	height: 50px; padding: 5px 0;
	background: #fff; box-shadow: 0 5px 10px -10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 0, 0, 0.2);
}
.gdl-header.is-stuck .gdl-nav .gdl-menu a { color: var(--gdl-text); }
.gdl-header.is-stuck .gdl-nav .gdl-menu a:hover { color: #000; }

/* ---------- Menu mobilne ---------- */
.gdl-burger {
	display: none; position: fixed; top: 25px; right: 25px; z-index: 10002;
	width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%;
	background: #000; cursor: pointer;
}
.gdl-burger__bars { position: absolute; left: 16px; top: 28px; width: 27px; height: 3px; }
.gdl-burger__bars i { position: absolute; left: 0; width: 27px; height: 3px; border-radius: 4px; background: #fff; transition: transform .3s, opacity .2s; }
.gdl-burger__bars i:nth-child(1) { top: -8px; }
.gdl-burger__bars i:nth-child(2) { top: 0; }
.gdl-burger__bars i:nth-child(3) { top: 8px; }
.gdl-panel-open .gdl-burger__bars i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.gdl-panel-open .gdl-burger__bars i:nth-child(2) { opacity: 0; }
.gdl-panel-open .gdl-burger__bars i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.gdl-panel { display: none; }
.gdl-panel-shade { display: none; }

@media (max-width: 980px) {
	.gdl-topbar, .gdl-navbar { display: none; }
	.gdl-burger { display: block; }
	.gdl-panel {
		display: block; position: fixed; top: 0; right: 0; bottom: 0; z-index: 10001;
		width: 300px; padding: 40px 25px 0; background: #0a0a0a;
		transform: translateX(100%); transition: transform .4s ease; visibility: hidden;
	}
	.gdl-panel-open .gdl-panel { transform: none; visibility: visible; }
	.gdl-panel-shade { position: fixed; inset: 0; z-index: 10000; }
	.gdl-panel-shade:not([hidden]) { display: block; }
	.gdl-panel__menu li { height: 49px; }
	.gdl-panel__menu a { display: block; color: #fff; font: 500 14px/49px var(--gdl-font-body); }
}

/* ---------- Przyciski ---------- */
.gdl-btn { display: inline-block; cursor: pointer; text-align: center; transition: background-color .3s, color .3s; }
.gdl-btn--hero {
	margin-bottom: 29px; padding: 0 18px;
	border: 1px solid #fff; color: #fff; font: 500 18px/30.6px var(--gdl-font-text); text-transform: uppercase;
}
.gdl-btn--hero:hover { background: rgba(255, 255, 255, 0.1); }
.gdl-btn--popup {
	padding: 5.5px 17px; border: 1px solid #000; border-radius: 15px;
	color: #000; font: 400 17px/1.7em var(--gdl-font-popup);
}
.gdl-btn--popup:hover { background: rgba(0, 0, 0, 0.05); }
.gdl-btn--flip { padding: 10px 20px; border: 1px solid #fff; background: #fff; color: var(--gdl-text); font: 500 16px/1.3em var(--gdl-font-text); }
.gdl-btn--flip:hover { background: transparent; color: var(--gdl-text); border-color: var(--gdl-text); }
.gdl-btn--form {
	padding: 4.5px 15px; border: 1px solid #000; border-radius: 20px; background: transparent;
	color: #000; font: 500 15px/1.7em var(--gdl-font-text); text-transform: uppercase;
}
.gdl-btn--form:hover { background: rgba(0, 0, 0, 0.05); }

/* ---------- Linie i separatory ---------- */
.gdl-divider { position: relative; height: 23px; margin: 0 auto; }
.gdl-divider::before { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 1px solid #fff; }
.gdl-divider--60 { width: 60%; margin-bottom: 10px; }
.gdl-divider--50 { width: 50%; }
.gdl-line { padding: 0; text-align: center; line-height: 0; }
.gdl-main .gdl-line img { display: inline-block; width: 10px; height: 100px; max-width: none; }

/* ---------- Baner ---------- */
.gdl-hero {
	position: relative; display: flex; flex-direction: column; justify-content: center;
	height: 100vh; min-height: 480px; overflow: hidden;
	background: #3a3a3a;
	color: #fff; text-align: center;
}
.gdl-hero--video { background-attachment: scroll; background-color: transparent; }
.gdl-hero__bg { position: absolute; top: 0; left: 0; width: 100%; height: 130%; background: center top / cover no-repeat; will-change: transform; }
.gdl-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gdl-hero__inner, .gdl-hero__bottom { position: relative; z-index: 2; width: 80%; max-width: var(--gdl-content); margin: 0 auto; }
.gdl-hero__inner { padding: var(--gdl-row-pad) 0; }
.gdl-hero__logo { margin: 0 auto 29px; line-height: 0; }
.gdl-hero__logo img { width: 100%; height: auto; }
.gdl-hero__title { padding-bottom: 10px; font: 500 48px/48px var(--gdl-font-head); text-transform: uppercase; color: #fff; }
.gdl-hero__subtitle { padding-bottom: 10px; font: 500 var(--gdl-sub, 34px)/var(--gdl-sub, 34px) var(--gdl-font-head); text-transform: uppercase; color: #fff; }
.gdl-hero--home .gdl-hero__subtitle:last-of-type { margin-bottom: 22px; }
.gdl-hero__more { display: block; width: 50px; height: 50px; margin: 0 auto; color: #fff; }
.gdl-hero__more svg { display: block; width: 26px; height: 23px; margin: 13.5px auto; }
.gdl-hero--home .gdl-hero__more { position: absolute; left: 50%; bottom: 31px; z-index: 2; margin-left: -25px; }

.gdl-hero--page .gdl-hero__logo { position: absolute; z-index: 2; top: calc(10vh + var(--gdl-row-pad)); left: 0; right: 0; margin: 0 auto; }
.gdl-hero--page { justify-content: flex-end; }
.gdl-hero--page .gdl-hero__bottom { padding: 0 0 calc(var(--gdl-row-pad) + 4px); }
.gdl-hero--page .gdl-hero__bottom .gdl-divider { margin-top: calc(8px + var(--gdl-gap, 0px)); margin-bottom: 29px; }

/* ---------- Elementor: zdjęcie domyślnych odstępów ---------- */
/* Odstępy kontenerów sterują zmienne Elementora; wartości z edytora (specyficzność wyższa) nadpisują poniższe domyślne. */
.gdl-main .e-con,
.gdl-main .elementor-section { --gap: 0px; --row-gap: 0px; --column-gap: 0px; --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --margin-top: 0px; --margin-bottom: 0px; --margin-left: 0px; --margin-right: 0px; --widgets-spacing: 0px; --widgets-spacing-row: 0px; --widgets-spacing-column: 0px; --height: auto; gap: 0; }
.gdl-main .elementor-widget:not(:last-child) { margin-block-end: 0; }
.gdl-main .elementor-widget-container { margin: 0; padding: 0; }
.gdl-main .elementor-widget-image img { display: block; width: 100%; height: auto; }

/* ---------- Sekcje i wiersze ---------- */
.gdl-main .gdl-sec { position: relative; width: 100%; background-color: var(--gdl-bg); --padding-top: 54px; --padding-bottom: 54px; }
.gdl-main .gdl-sec--lines { background-image: url("assets/img/line-bg.png"); background-size: cover; background-position: center; background-repeat: no-repeat; }
.gdl-main .gdl-sec--band { height: 65vh; border-top: 20px solid var(--gdl-grey); border-bottom: 20px solid var(--gdl-grey); background-size: cover; background-position: center; background-attachment: fixed; --padding-top: 0px; --padding-bottom: 0px; }
.gdl-main .gdl-r { width: 80%; max-width: var(--gdl-content); margin-left: auto; margin-right: auto; --padding-top: 27px; --padding-bottom: 27px; }
.gdl-main .gdl-r--full { width: 100%; max-width: none; }
.gdl-main .gdl-r--90 { width: 90%; max-width: 90%; }
.gdl-main .gdl-r > .elementor-widget:not(:last-child),
.gdl-main .gdl-c > .elementor-widget:not(:last-child) { margin-bottom: 30px; }
.gdl-main .gdl-cols { --flex-direction: row; flex-direction: row; justify-content: space-between; align-items: stretch; }
.gdl-main .gdl-cols > .gdl-c { flex: 0 0 auto; }
.gdl-main .gdl-cols.gdl-gut1 > .gdl-c { width: 50%; }
.gdl-main .gdl-cols.gdl-gut2 > .gdl-c { width: 48.5%; }
.gdl-main .gdl-cols.gdl-gut3 > .gdl-c { width: 47.25%; }
.gdl-main .gdl-c { width: 100%; }

/* ---------- Teksty ---------- */
.gdl-main .gdl-text { margin-left: auto; margin-right: auto; text-align: center; color: var(--gdl-text); }
.gdl-main .gdl-text p { padding: 0 0 1em; font: 500 15px/23.8px var(--gdl-font-text); color: var(--gdl-text); }
.gdl-main .gdl-text p:last-child { padding-bottom: 0; }
.gdl-main .gdl-text h4 { font: 500 22px/28.6px var(--gdl-font-head); text-transform: uppercase; color: var(--gdl-text); padding-bottom: 10px; }
.gdl-main .gdl-text--about { width: 60%; padding: 2px 50px; margin-bottom: 0 !important; }
.gdl-main .gdl-text--wide { width: 70%; }
.gdl-main .gdl-text--left { width: 100%; text-align: left; }
.gdl-main .gdl-text--left h3 { font: 600 30px/30px var(--gdl-font-head); color: var(--gdl-text); padding-bottom: 10px; }
.gdl-main .gdl-text--left p { font: 500 17px/25.5px var(--gdl-font-text); padding: 0; }
.gdl-main .gdl-text--wide p { font: 500 17px/25.5px var(--gdl-font-text); }
.gdl-main .gdl-cards { margin-bottom: 6vh; }
.gdl-main .gdl-photo { width: 100%; }
.gdl-main .gdl-photo--75 { width: 75%; margin-left: auto; margin-right: auto; }
.gdl-main .gdl-igwrap { width: 80%; margin: 25px auto; }
.gdl-main .gdl-slider-wrap { width: 100%; margin-top: -5px; }
.gdl-main .gdl-r > .elementor-widget.gdl-slider-wrap:not(:last-child) { margin-bottom: 10px; }
.gdl-main .gdl-legal { color: var(--gdl-text); }
.gdl-main .gdl-legal h1 { font: 500 30px/30px var(--gdl-font-body); padding-bottom: 10px; color: var(--gdl-text); text-align: center; }
.gdl-main .gdl-legal h2 { font: 500 26px/26px var(--gdl-font-body); padding-bottom: 10px; color: var(--gdl-text); }
.gdl-main .gdl-legal h3, .gdl-main .gdl-legal h4 { font: 500 20px/1.3em var(--gdl-font-body); padding-bottom: 10px; color: var(--gdl-text); }
.gdl-main .gdl-legal p { padding: 0 0 14px; font: 500 14px/23.8px var(--gdl-font-body); }
.gdl-main .gdl-legal p:last-of-type { padding-bottom: 0; }
.gdl-main .gdl-legal li p { line-height: 26px; }
.gdl-main .gdl-legal small { font-size: 100%; }
.gdl-main .gdl-legal ul, .gdl-main .gdl-legal ol { margin: 0; padding: 0 0 23px 14px; line-height: 26px; }
.gdl-main .gdl-legal ul { list-style: disc outside; }
.gdl-main .gdl-legal ol { list-style: decimal outside; }
.gdl-main .gdl-legal li { padding: 0; font: 500 14px/26px var(--gdl-font-body); }
.gdl-main .gdl-legal a { color: var(--gdl-text); text-decoration: underline; }
.gdl-main .gdl-legal table { width: 100%; border-collapse: collapse; }
.gdl-main .gdl-legal td, .gdl-main .gdl-legal th { padding: 6px 10px; border: 1px solid #ddd; text-align: left; vertical-align: top; }

/* ---------- Karty ze zdjęciem ---------- */
.gdl-main .gdl-cards { display: grid; grid-template-columns: 48.5% 48.5%; justify-content: space-between; row-gap: 6vh; width: 90%; margin-left: auto; margin-right: auto; padding-top: 0; padding-bottom: 0; }
.gdl-main .gdl-cards > .elementor-widget { display: flex; }
.gdl-main .gdl-cards .elementor-widget-container { display: flex; width: 100%; height: 100%; }
.gdl-card { position: relative; width: 100%; height: 100%; margin: 0; background: #000; line-height: 0; overflow: hidden; }
.gdl-card__img { display: block; width: 100%; height: auto; min-height: 100%; object-fit: cover; filter: brightness(0.5) blur(1px); }
.gdl-card__body {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
	padding: 0 5%; line-height: 22.1px; color: #fff; text-align: center;
}
.gdl-card__body h5 { font: 600 25px/25px var(--gdl-font-head); text-transform: uppercase; color: #fff; padding-bottom: 10px; }
.gdl-card__body p { font: 500 17px/22.1px var(--gdl-font-text); color: #fff; padding: 0; }

/* ---------- Odwracana karta ---------- */
.gdl-flip { position: relative; width: 100%; height: 300px; margin-bottom: 7px; perspective: 1200px; }
.gdl-flip__inner { position: relative; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d; }
.gdl-flip:hover .gdl-flip__inner, .gdl-flip:focus-within .gdl-flip__inner, .gdl-flip:focus .gdl-flip__inner { transform: rotateY(180deg); }
.gdl-flip__front, .gdl-flip__back { border-radius: 3px; overflow: hidden;
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
	backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center;
}
.gdl-flip__front { justify-content: flex-start; align-items: stretch; background: #555 center / cover no-repeat; }
.gdl-flip__front::before { content: ""; position: absolute; inset: 0; background: rgba(80,80,80,0.55); }
.gdl-flip__front h4, .gdl-flip__back h4 { font: 600 35px/35px var(--gdl-font-head); letter-spacing: 1px; padding: 0 0 10px; }
.gdl-flip__front h4 { position: relative; margin: 20px 0 0 16px; padding-top: 20%; color: #fff; text-align: center; }
.gdl-flip--full .gdl-flip__front h4 { padding-top: 10%; }
.gdl-flip__back { background: var(--gdl-grey); transform: rotateY(180deg); }
.gdl-flip__back h4 { color: var(--gdl-text); }
.gdl-flip__back .gdl-btn { margin-top: 30px; background: #fff; }

/* ---------- Galeria ---------- */
.gdl-gallery { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding-bottom: 21px; }
.gdl-gallery:not(.is-ready) { display: block; column-count: 3; column-gap: 10px; }
.gdl-gallery:not(.is-ready) .gdl-gallery__item { margin-bottom: 10px; break-inside: avoid; }
.gdl-gallery__col { display: flex; flex: 1 1 0; flex-direction: column; gap: 10px; min-width: 0; }
.gdl-gallery__item { position: relative; display: block; line-height: 0; overflow: hidden; }
.gdl-gallery__item::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity .5s; pointer-events: none; }
.gdl-gallery__item:hover::after, .gdl-gallery__item:focus-visible::after { opacity: 1; }
.gdl-gallery__item img { display: block; width: 100%; height: auto; }
/* ---------- Slider opinii ---------- */
.gdl-slider { display: grid; position: relative; width: 100%; text-align: center; }
.gdl-slider__slide { grid-area: 1 / 1; padding: 0 6%; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.gdl-slider__desc { padding: 20px 8% 3px; }
.gdl-slider__slide.is-active { opacity: 1; pointer-events: auto; }
.gdl-slider__slide p { padding: 0; font: 500 17px/23.8px var(--gdl-font-text); color: var(--gdl-text); }
.gdl-slider__author { padding-top: 17px !important; }

/* ---------- Kontakt ---------- */
.gdl-contact__title { font: 500 50px/50px var(--gdl-font-head); color: var(--gdl-text); padding-bottom: 10px; }
.gdl-contact__row { display: flex; align-items: center; margin: 0; padding: 0; font: 500 20px/40px var(--gdl-font-text); }
.gdl-contact__row .gdl-ico { margin-right: 8px; font-size: 20px; }
.gdl-map { margin-top: 19px; height: 280px; }
.gdl-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.gdl-form p { margin: 0; padding-bottom: 3%; }
.gdl-form > form > p:first-of-type { padding-top: 0; }
.gdl-form input[type="text"], .gdl-form input[type="email"], .gdl-form input[type="tel"], .gdl-form select, .gdl-form textarea {
	display: block; width: 100%; padding: 16px; border: 0; border-radius: 3px;
	height: 51px; background: #eee; color: var(--gdl-text); font: 500 14px/1.7em var(--gdl-font-body);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.gdl-form textarea { height: 150px; resize: vertical; }
.gdl-form select { height: 48px; }
.gdl-form select { appearance: auto; }
.gdl-form .gdl-form__consent { padding-bottom: 19px; }
.gdl-form__consent label { display: flex; align-items: flex-start; gap: 8px; font: 500 12px/20.4px var(--gdl-font-body); color: var(--gdl-text); }
.gdl-form__consent input { margin-top: 4px; }
.gdl-form .gdl-form__submit { padding-bottom: 0; text-align: right; }
.gdl-form__trap { position: absolute; left: -9999px; }
.gdl-form__msg { padding: 12px 16px; margin-bottom: 20px; border-radius: 3px; }
.gdl-form__msg--ok { background: #e7f3e8; color: #2d6a3a; }
.gdl-form__msg--err { background: #fbe9e9; color: #8a2d2d; }

/* ---------- Media społecznościowe ---------- */
.gdl-social { display: flex; justify-content: center; gap: 4px; padding: 0 0 30px; }
.gdl-social a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #fff; }
.gdl-social svg { width: 16px; height: 16px; }
.gdl-social__fb { background: #3b5998; }
.gdl-social__ig { background: #ea2c59; }

/* ---------- Stopka ---------- */
.gdl-footer__top { padding: var(--gdl-sec-pad) 0; background: rgba(0, 0, 0, 0.5) center bottom / cover no-repeat; background-blend-mode: overlay; }
.gdl-footer__inner { width: 80%; max-width: var(--gdl-content); margin: 0 auto; padding: var(--gdl-row-pad) 0; text-align: center; }
.gdl-footer__inner p { padding: 0; font: 500 20px/23.8px var(--gdl-font-head); color: #fff; }
.gdl-footer__question { margin-bottom: 24px; }
.gdl-footer__inner a { color: #fff; }
.gdl-footer__bar { background: var(--gdl-grey); padding: 15px 0; text-align: center; }
.gdl-footer__links { display: flex; flex-wrap: wrap; justify-content: center; font: 500 15px/23.8px var(--gdl-font-text); }
.gdl-footer__links li + li::before { content: "\2219"; margin: 0 6px; }
.gdl-footer__links a { color: var(--gdl-text); }

/* ---------- Okno „Wolne terminy” ---------- */
.gdl-popup { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.8); }
.gdl-popup[hidden] { display: none; }
.gdl-popup__box { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 680px; min-height: 281px; max-width: calc(100% - 32px); padding: 30px; background: #fff; text-align: center; font-family: var(--gdl-font-popup); }
.gdl-popup__box h4 { font: 400 25px/18.5px var(--gdl-font-popup); color: var(--gdl-text); }
.gdl-popup__box p { padding-bottom: 14px; font: 400 17px/1.7em var(--gdl-font-popup); color: var(--gdl-text); }
.gdl-popup__close { position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; padding: 0; border: 0; background: none; color: var(--gdl-text); cursor: pointer; }
.gdl-popup__close svg { width: 100%; height: 100%; }

/* ---------- Strony zwykłe i 404 ---------- */
.gdl-main--plain { padding: 160px 0 80px; }
.gdl-plain { width: 80%; max-width: var(--gdl-content); margin: 0 auto; }
.gdl-plain--center { text-align: center; }
.gdl-plain h1 { font: 500 40px/1.3em var(--gdl-font-head); text-transform: uppercase; }

/* ---------- Tablet i telefon ---------- */
@media (max-width: 980px) {
	:root { --gdl-sec-pad: 50px; --gdl-row-pad: 30px; }
	.gdl-main .gdl-sec { --padding-top: 50px; --padding-bottom: 50px; }
	.gdl-main .gdl-r { --padding-top: 30px; --padding-bottom: 30px; }
	.gdl-main .gdl-sec--band { --padding-top: 0px; --padding-bottom: 0px; background-attachment: scroll; }
	.gdl-hero__bg { transform: none !important; }
	.gdl-main .gdl-cols { --flex-direction: column !important; flex-direction: column !important; }
	.gdl-main .gdl-cols > .gdl-c,
	.gdl-main .gdl-cols.gdl-gut1 > .gdl-c,
	.gdl-main .gdl-cols.gdl-gut2 > .gdl-c,
	.gdl-main .gdl-cols.gdl-gut3 > .gdl-c { width: 100%; }
	.gdl-main .gdl-cols.gdl-gut2 > .gdl-c:not(:last-child),
	.gdl-main .gdl-cols.gdl-gut3 > .gdl-c:not(:last-child) { margin-bottom: 30px; }
	.gdl-main .gdl-text--left { margin-bottom: 0; }
	.gdl-main .gdl-line img { width: 8%; }
	.gdl-main .gdl-cards { grid-template-columns: 100%; row-gap: 30px; margin-bottom: 3vh; }
	.gdl-main .gdl-cards .elementor-widget-container { display: block; }
	.gdl-card { height: auto; overflow: visible; background: none; line-height: normal; }
	.gdl-card__img { min-height: 0; }
	.gdl-card__body { position: static; display: block; padding: 30px 5% 0; }
	.gdl-card__body h5, .gdl-card__body p { color: var(--gdl-text); }
	.gdl-map { height: 350px; }
	.gdl-form .gdl-form__consent { padding-bottom: 5px; }
	.gdl-gallery:not(.is-ready) { column-count: 2; }
}
@media (max-width: 767px) {
	.gdl-gallery:not(.is-ready) { column-count: 1; }
	.gdl-main .gdl-text--left { padding-bottom: 25px; }
	.gdl-map { height: 200px; }
}

/* ---------- Pomocnicze odstępy wierszy (nadpisują wartości domyślne) ---------- */
.gdl-main .gdl-pt0 { --padding-top: 0px; }
.gdl-main .gdl-pt35 { --padding-top: 35px; }
.gdl-main .gdl-pb0 { --padding-bottom: 0px; }
.gdl-main .gdl-pb3 { --padding-bottom: 3px; }
.gdl-main .gdl-pb35 { --padding-bottom: 35px; }
.gdl-main .gdl-mb-16 { --margin-bottom: -16px; }

/* ---------- Pojawianie się elementów przy przewijaniu ---------- */
@keyframes gdl-fade { from { opacity: 0; } to { opacity: 1; } }
html.gdl-js .gdl-fx:not(.is-in) { opacity: 0; }
html.gdl-js .gdl-fx.is-in { animation: gdl-fade 1s ease-in-out both; }
.gdl-hero__inner, .gdl-hero--page .gdl-hero__logo, .gdl-hero--page .gdl-hero__bottom { animation: gdl-fade 1s ease-in-out both; }
body.elementor-editor-active .gdl-fx, .elementor-editor-active .gdl-fx { opacity: 1 !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
	html.gdl-js .gdl-fx:not(.is-in) { opacity: 1; }
	html.gdl-js .gdl-fx.is-in, .gdl-hero__inner, .gdl-hero--page .gdl-hero__logo, .gdl-hero--page .gdl-hero__bottom { animation: none; }
}

/* ---------- Powiększenie zdjęcia z galerii ---------- */
html.gdl-lb-open { overflow: hidden; }
.gdl-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, 0.8); }
.gdl-lb__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 8px; }
.gdl-lb__fig { position: relative; max-width: 100%; margin: 0; padding: 40px 0; line-height: 0; }
.gdl-lb__img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 80px); cursor: pointer; transform-origin: center center; }
.gdl-lb__img.is-zooming { transition: transform .3s ease-in-out; }
.gdl-lb__bar { position: absolute; left: 0; right: 0; bottom: 36px; height: 40px; background: rgba(0, 0, 0, 0.72); transition: opacity .15s; }
.gdl-lb__count { position: absolute; top: 2px; right: 21px; font: 400 12px/18px var(--gdl-font-body); color: #ccc; }
.gdl-lb.is-busy .gdl-lb__bar { opacity: 0; }
.gdl-lb__close, .gdl-lb__arrow { position: absolute; z-index: 2; margin: 0; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.gdl-lb__close { top: 10px; right: 10px; width: 44px; height: 44px; font: 300 64px/40px Arial, sans-serif; text-align: center; opacity: 1; }
.gdl-lb__arrow { top: 50%; width: 48px; height: 48px; margin-top: -24px; opacity: 0.65; transition: opacity .2s; }
.gdl-lb__arrow:hover, .gdl-lb__arrow:focus-visible { opacity: 1; }
.gdl-lb__arrow--prev { left: 10px; }
.gdl-lb__arrow--next { right: 4px; }
.gdl-lb__arrow svg { display: block; width: 22px; height: 36px; margin: 6px auto; }
.gdl-lb__close:focus-visible, .gdl-lb__arrow:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* ---------- Pasek admina (zalogowany użytkownik) ---------- */
.admin-bar .gdl-header { top: var(--wp-admin--admin-bar--height, 32px); }
.admin-bar .gdl-header.is-stuck .gdl-navbar { top: var(--gdl-bar, var(--wp-admin--admin-bar--height, 32px)); }
.admin-bar .gdl-burger { top: calc(25px + var(--gdl-bar, var(--wp-admin--admin-bar--height, 32px))); }
.admin-bar .gdl-panel { top: var(--gdl-bar, var(--wp-admin--admin-bar--height, 32px)); }

/* ---------- Formularz kontaktowy (Contact Form 7) ---------- */
.gdl-form .wpcf7, .gdl-form .wpcf7-form { margin: 0; padding: 0; }
.gdl-form .wpcf7-form-control-wrap { display: block; position: relative; }
.gdl-form .wpcf7-form-control-wrap[data-name="gdl-website"] { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gdl-form .wpcf7-list-item { display: block; margin: 0; }
.gdl-form .wpcf7-acceptance .wpcf7-list-item-label { display: block; }
.gdl-form .wpcf7-not-valid { box-shadow: 0 0 0 1px #c0392b, 0 2px 5px rgba(0, 0, 0, 0.1); }
.gdl-form .wpcf7-not-valid-tip { display: block; margin-top: 4px; color: #8a2d2d; font: 500 12px/1.4em var(--gdl-font-body); }
.gdl-form .wpcf7-spinner { position: absolute; margin: 12px 0 0 12px; }
.gdl-form .wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 16px; border: 0; border-radius: 3px; font: 500 14px/1.5em var(--gdl-font-body); }
.gdl-form .wpcf7 form.sent .wpcf7-response-output { background: #e7f3e8; color: #2d6a3a; }
.gdl-form .wpcf7 form.invalid .wpcf7-response-output, .gdl-form .wpcf7 form.unaccepted .wpcf7-response-output,
.gdl-form .wpcf7 form.failed .wpcf7-response-output, .gdl-form .wpcf7 form.spam .wpcf7-response-output,
.gdl-form .wpcf7 form.aborted .wpcf7-response-output { background: #fbe9e9; color: #8a2d2d; }
.gdl-form .gdl-form__submit .gdl-btn { cursor: pointer; }
