/* ==========================================================================
   jaroslawolesinski.pl - header custom styles
   Consistent icon buttons (Strefa klienta / Facebook / Instagram) +
   full-screen mobile menu panel.
   ========================================================================== */

/* Social icons are the native divi/social-media-follow module in both the
   desktop bar and the mobile panel, so they share one look by construction.
   The module lays its items out horizontally on its own; the only thing
   needed here is centring it inside the full-screen panel. */
.js-mobile-menu-panel .js-social-follow .et_pb_social_media_follow,
.js-mobile-menu-panel .et_pb_social_media_follow {
	display: flex !important;
	flex-direction: row !important;
	justify-content: center;
	align-items: center;
	margin: 0;
}

/* The tablet CTA shares the bar with the burger. Below Divi's tablet
   breakpoint there is no room for it, and it already lives inside the
   full-screen menu, so hide it rather than letting it squeeze the logo. */
@media (max-width: 767px) {
	.js-tablet-cta {
		display: none !important;
	}
}

/* Full-screen mobile menu panel */
.js-mobile-menu-panel {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background-color: #0a0a0a;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 32px 24px 40px;
	visibility: hidden;
	opacity: 0;
	overflow-y: auto;
}

.js-mobile-menu-panel.is-open {
	visibility: visible;
}

/* Must be `fixed`, not `absolute`: Divi gives every column position:relative,
   so an absolutely positioned close icon would anchor to its column instead
   of the screen (it landed 81px in from the right edge that way). Fixed makes
   the offsets viewport-relative. JS then nudges it onto the exact spot the
   burger occupied, so the X appears under the thumb that just opened it;
   these values are the fallback before that runs. */
.js-menu-close {
	position: fixed;
	top: 55px;
	right: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	cursor: pointer;
	z-index: 1000000;
}

.js-menu-close .et_pb_svg_inner {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 26px !important;
	height: 26px !important;
}

.js-menu-close svg {
	width: 26px !important;
	height: 26px !important;
	color: #ffffff;
}

.js-mobile-menu-panel .js-mobile-menu-logo img {
	width: 140px;
	height: auto;
}

.js-mobile-menu-panel .js-mobile-menu-links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.js-mobile-menu-panel .js-mobile-menu-links a {
	color: #ffffff;
	font-size: 22px;
	letter-spacing: 0.05em;
	text-decoration: none;
}

.js-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	cursor: pointer;
}

.js-menu-toggle .et_pb_svg_inner {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 26px !important;
	height: 26px !important;
}

.js-menu-toggle svg {
	width: 26px !important;
	height: 26px !important;
	color: #ffffff;
}


body.mobile-menu-open {
	overflow: hidden;
}

/* ==========================================================================
   Hero - three category tiles (slubna / eventowa / okolicznosciowa)
   Client brief: screen split in three, monochrome photo + label,
   photo gains colour on hover, each tile links to its offer page.
   ========================================================================== */

.js-hero-split {
	position: relative;
	overflow: hidden;
}

/* --hero-offset is measured in JS: it is the height of everything stacked
   above the hero (EFS strip + sticky nav), so the three tiles really do
   divide the visible screen rather than overflowing below the fold. */
.js-hero-tiles {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: calc(100vh - var(--hero-offset, 0px));
	min-height: calc(100dvh - var(--hero-offset, 0px));
}

.js-hero-tile {
	position: relative;
	overflow: hidden;
	min-height: calc(100vh - var(--hero-offset, 0px));
	min-height: calc(100dvh - var(--hero-offset, 0px));
	display: flex !important;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 0 clamp(20px, 2.6vw, 44px) clamp(34px, 6vh, 74px) !important;
	cursor: pointer;
	/* Fallback for the greyscale/colour swap. Divi also emits its own
	   saturate filter from the module settings; both resolve to the
	   same visual state, so whichever wins is fine. */
	filter: saturate(0);
	transition: filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-hero-tile:hover,
.js-hero-tile:focus-within {
	filter: saturate(1);
}

/* Scrim: keeps the white label legible over any photo (WCAG AA). */
.js-hero-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.74) 0%,
		rgba(0, 0, 0, 0.32) 40%,
		rgba(0, 0, 0, 0.12) 100%
	);
	transition: background 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-hero-tile:hover::before,
.js-hero-tile:focus-within::before {
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.62) 0%,
		rgba(0, 0, 0, 0.2) 45%,
		rgba(0, 0, 0, 0.05) 100%
	);
}

/* Hairline divider between tiles. */
.js-hero-tile + .js-hero-tile::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 1px;
	z-index: 3;
	pointer-events: none;
	background: rgba(255, 255, 255, 0.16);
}

/* Divi renders the link module with the module class on the <a> itself,
   so .js-hero-tile-label IS the anchor - not a wrapper around one. */
.js-hero-tile-label {
	position: relative;
	z-index: 2;
	display: inline-block !important;
	align-self: flex-end;
	padding-bottom: 12px;
	text-decoration: none !important;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-hero-tile-label .et_pb_link_text,
.js-hero-tile-label .et_pb_link_text p {
	margin: 0;
	color: #ffffff !important;
	font-size: clamp(16px, 1.35vw, 21px);
	line-height: 1.3;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.js-hero-tile-label::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 1px;
	background: #dca47d;
	transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-hero-tile:hover .js-hero-tile-label,
.js-hero-tile:focus-within .js-hero-tile-label {
	transform: translateY(-4px);
}

.js-hero-tile:hover .js-hero-tile-label::before,
.js-hero-tile:focus-within .js-hero-tile-label::before {
	width: 100%;
}

.js-hero-tile-label:focus-visible {
	outline: 2px solid #dca47d;
	outline-offset: 8px;
}

/* Entrance pre-state. Gated on a class set by a tiny inline script in
   <head>, so with JS disabled the tiles are simply visible from the start
   (never permanently hidden). GSAP writes inline styles that override this,
   and a failsafe timer drops the class if GSAP never loads. */
.has-js-anim .js-hero-tile,
.has-js-anim .js-hero-tile-label {
	opacity: 0;
}

@media (max-width: 980px) {
	.js-hero-tile {
		min-height: calc((100vh - var(--hero-offset, 0px)) / 3);
		min-height: calc((100dvh - var(--hero-offset, 0px)) / 3);
	}

	.js-hero-tile + .js-hero-tile::after {
		top: 0;
		left: 0;
		right: 0;
		bottom: auto;
		width: auto;
		height: 1px;
	}

	.js-hero-tile {
		padding-bottom: clamp(20px, 3.4vh, 34px) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.js-hero-tile,
	.js-hero-tile::before,
	.js-hero-tile-label,
	.js-hero-tile-label::before {
		transition: none !important;
	}
}

/* Podstrony oferty (350/351/352): serif w nagłówkach bez wersalików motywu */
.page-id-350 .et_pb_heading_container h1,
.page-id-350 .et_pb_heading_container h2,
.page-id-350 .et_pb_heading_container h3,
.page-id-351 .et_pb_heading_container h1,
.page-id-351 .et_pb_heading_container h2,
.page-id-351 .et_pb_heading_container h3,
.page-id-352 .et_pb_heading_container h1,
.page-id-352 .et_pb_heading_container h2,
.page-id-352 .et_pb_heading_container h3 {
	text-transform: none;
	letter-spacing: -0.01em;
}
